Class: Hookable::ProcHooker

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

Instance Method Summary collapse

Methods included from Hooker

#hook_method

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