Class: AlterEgo::StateHook::StateContextCallback

Inherits:
HookR::InternalCallback
  • Object
show all
Defined in:
lib/alter_ego.rb

Instance Method Summary collapse

Instance Method Details

#call(event) ⇒ Object



80
81
82
83
# File 'lib/alter_ego.rb', line 80

def call(event)
  context = event.arguments.first
  context.instance_eval(&block)
end