Class: HookR::ExternalCallback

Inherits:
BlockCallback show all
Defined in:
lib/hookr.rb

Overview

A callback which will execute outside the event source

Instance Attribute Summary

Attributes inherited from BlockCallback

#block

Attributes inherited from Callback

#handle, #index

Instance Method Summary collapse

Methods inherited from BlockCallback

#initialize

Methods inherited from Callback

#<=>

Constructor Details

This class inherits a constructor from HookR::BlockCallback

Instance Method Details

#call(event) ⇒ Object



570
571
572
# File 'lib/hookr.rb', line 570

def call(event)
  block.call(*event.to_args(block.arity))
end