Class: Green::Hub::EM::SocketWaiter::Handler

Inherits:
EM::Connection
  • Object
show all
Defined in:
lib/green/hub/em.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#greenObject

Returns the value of attribute green.



23
24
25
# File 'lib/green/hub/em.rb', line 23

def green
  @green
end

Instance Method Details

#notify_readableObject



24
25
26
# File 'lib/green/hub/em.rb', line 24

def notify_readable
  green.switch
end

#notify_writableObject



28
29
30
# File 'lib/green/hub/em.rb', line 28

def notify_writable
  green.switch
end