Class: Hookable::ProcHooker
- Includes:
- Hooker
- Defined in:
- lib/hookable.rb
Instance Method Summary collapse
-
#initialize(*hook_names, &block) ⇒ ProcHooker
constructor
A new instance of ProcHooker.
Methods included from Hooker
Constructor Details
#initialize(*hook_names, &block) ⇒ ProcHooker
Returns a new instance of ProcHooker.
102 103 104 105 |
# File 'lib/hookable.rb', line 102 def initialize *hook_names, &block hook_method :call, *hook_names super(&block) end |