Method: Sequel::Plugins::HookClassMethods::ClassMethods#has_hooks?
- Defined in:
- lib/sequel/plugins/hook_class_methods.rb
permalink #has_hooks?(hook) ⇒ Boolean
Returns true if there are any hook blocks for the given hook.
56 57 58 |
# File 'lib/sequel/plugins/hook_class_methods.rb', line 56 def has_hooks?(hook) !@hooks[hook].empty? end |