module ViewModel::Callbacks
def valid_hook!(hook)
def valid_hook!(hook) unless hook.is_a?(Hook) raise ArgumentError.new("Invalid hook: '#{hook}'") end end
def valid_hook!(hook) unless hook.is_a?(Hook) raise ArgumentError.new("Invalid hook: '#{hook}'") end end