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.
562 563 564 565 |
# File 'lib/hookr.rb', line 562 def initialize(handle, block, index) @block = block super(handle, index) end |
Instance Attribute Details
#block ⇒ Object (readonly)
Returns the value of attribute block.
560 561 562 |
# File 'lib/hookr.rb', line 560 def block @block end |