Class: Green::SocketWaiter
- Inherits:
-
Object
- Object
- Green::SocketWaiter
- Defined in:
- lib/green.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#socket ⇒ Object
readonly
Returns the value of attribute socket.
Instance Method Summary collapse
-
#initialize(socket) ⇒ SocketWaiter
constructor
A new instance of SocketWaiter.
- #wait_read ⇒ Object
- #wait_write ⇒ Object
Constructor Details
#initialize(socket) ⇒ SocketWaiter
Returns a new instance of SocketWaiter.
59 60 61 |
# File 'lib/green.rb', line 59 def initialize(socket) @socket = socket end |
Instance Attribute Details
#socket ⇒ Object (readonly)
Returns the value of attribute socket.
58 59 60 |
# File 'lib/green.rb', line 58 def socket @socket end |
Instance Method Details
#wait_read ⇒ Object
63 64 |
# File 'lib/green.rb', line 63 def wait_read end |
#wait_write ⇒ Object
66 67 |
# File 'lib/green.rb', line 66 def wait_write end |