Class: HookR::BlockCallback
Overview
A base class for callbacks which execute a block
Direct Known Subclasses
Instance Attribute Summary collapse
-
#block ⇒ Object
readonly
Returns the value of attribute block.
Attributes inherited from Callback
Instance Method Summary collapse
-
#initialize(handle, block, index) ⇒ BlockCallback
constructor
A new instance of BlockCallback.
Methods inherited from Callback
Constructor Details
#initialize(handle, block, index) ⇒ BlockCallback
Returns a new instance of BlockCallback.
525 526 527 528 |
# File 'lib/hookr.rb', line 525 def initialize(handle, block, index) @block = block super(handle, index) end |
Instance Attribute Details
#block ⇒ Object (readonly)
Returns the value of attribute block.
523 524 525 |
# File 'lib/hookr.rb', line 523 def block @block end |