Method: Sequel::Plugins::HookClassMethods::ClassMethods#hook_blocks

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

#hook_blocks(hook) ⇒ Object

Yield every block related to the given hook.

[View source]

61
62
63
64
65
# File 'lib/sequel/plugins/hook_class_methods.rb', line 61

def hook_blocks(hook)
  # SEQUEL6: Remove
  Sequel::Deprecation.deprecate("The hook_blocks class method in the hook_class_methods plugin is deprecated and will be removed in Sequel 6.")
  @hooks[hook].each{|_,v,_| yield v}
end