Class: Foolio::Handle
- Inherits:
-
Object
- Object
- Foolio::Handle
- Defined in:
- lib/foolio/handle.rb
Instance Method Summary collapse
- #callback(&block) ⇒ Object
-
#initialize(loop, handle) ⇒ Handle
constructor
A new instance of Handle.
Constructor Details
#initialize(loop, handle) ⇒ Handle
Returns a new instance of Handle.
5 6 7 8 |
# File 'lib/foolio/handle.rb', line 5 def initialize(loop, handle) @loop = loop @handle = handle end |
Instance Method Details
#callback(&block) ⇒ Object
10 11 12 |
# File 'lib/foolio/handle.rb', line 10 def callback(&block) @loop.callback &block end |