Class: Foolio::Handle

Inherits:
Object
  • Object
show all
Defined in:
lib/foolio/handle.rb

Direct Known Subclasses

Idle, Stream, Timer, UDP

Instance Method Summary collapse

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