Class: Hookable::ProcHooker

Inherits:
Proc
  • Object
show all
Includes:
Hooker
Defined in:
lib/hookable.rb

Instance Method Summary collapse

Methods included from Hooker

included

Constructor Details

#initialize(*hook_names, &block) ⇒ ProcHooker

Returns a new instance of ProcHooker.



104
105
106
107
# File 'lib/hookable.rb', line 104

def initialize ( *hook_names, &block )
  hook_method :call, *hook_names
  super(&block)
end