class EaseEngine::Watcher::Info
Attributes
callbacks[RW]
io[RW]
Public Class Methods
new( io, flags, callbacks )
click to toggle source
Calls superclass method
# File lib/ease_engine/watcher.rb, line 9 def initialize( io, flags, callbacks ) @io = io @callbacks = callbacks super( io.kind_of?( EaseEngine::Socket ) ? io.socket : io, flags ) end
Public Instance Methods
on_readable()
click to toggle source
# File lib/ease_engine/watcher.rb, line 16 def on_readable @callbacks[ :on_read ].call( @io ) if @callbacks.key?( :on_read ) end
on_remove()
click to toggle source
# File lib/ease_engine/watcher.rb, line 24 def on_remove @callbacks[ :on_remove ].call( @io ) if @callbacks.key?( :on_remove ) end
on_writable()
click to toggle source
# File lib/ease_engine/watcher.rb, line 20 def on_writable @callbacks[ :on_write ].call( @io ) if @callbacks.key?( :on_write ) end