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.
540 541 542 543 |
# File 'lib/hookr.rb', line 540 def initialize(handle, block, index) @block = block super(handle, index) end |
Instance Attribute Details
#block ⇒ Object (readonly)
Returns the value of attribute block.
538 539 540 |
# File 'lib/hookr.rb', line 538 def block @block end |