Class: ZMachine::Channel
- Inherits:
-
Object
- Object
- ZMachine::Channel
- Defined in:
- lib/zmachine/channel.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#handler ⇒ Object
Returns the value of attribute handler.
-
#selector ⇒ Object
readonly
Returns the value of attribute selector.
-
#socket ⇒ Object
readonly
Returns the value of attribute socket.
Instance Method Summary collapse
-
#initialize(selector) ⇒ Channel
constructor
A new instance of Channel.
Constructor Details
#initialize(selector) ⇒ Channel
Returns a new instance of Channel.
8 9 10 11 |
# File 'lib/zmachine/channel.rb', line 8 def initialize(selector) @selector = selector @outbound_queue = [] end |
Instance Attribute Details
#handler ⇒ Object
Returns the value of attribute handler.
6 7 8 |
# File 'lib/zmachine/channel.rb', line 6 def handler @handler end |
#selector ⇒ Object (readonly)
Returns the value of attribute selector.
5 6 7 |
# File 'lib/zmachine/channel.rb', line 5 def selector @selector end |
#socket ⇒ Object (readonly)
Returns the value of attribute socket.
4 5 6 |
# File 'lib/zmachine/channel.rb', line 4 def socket @socket end |