Method: Sequel::Plugins::HookClassMethods::ClassMethods#has_hooks?

Defined in:
lib/sequel/plugins/hook_class_methods.rb

#has_hooks?(hook) ⇒ Boolean

Returns true if there are any hook blocks for the given hook.

Returns:

  • (Boolean)
[View source]

56
57
58
# File 'lib/sequel/plugins/hook_class_methods.rb', line 56

def has_hooks?(hook)
  !@hooks[hook].empty?
end