Class: Equity::Node::Static
- Inherits:
-
Node
- Object
- Node
- Equity::Node::Static
- Defined in:
- lib/equity/node.rb
Instance Attribute Summary collapse
-
#counter ⇒ Object
writeonly
Sets the attribute counter.
Instance Method Summary collapse
- #connect(client) ⇒ Object
- #connected=(bool) ⇒ Object
- #disconnect ⇒ Object
- #owns_socket?(socket) ⇒ Boolean
- #sockets ⇒ Object
Instance Attribute Details
#counter=(value) ⇒ Object (writeonly)
Sets the attribute counter
80 81 82 |
# File 'lib/equity/node.rb', line 80 def counter=(value) @counter = value end |
Instance Method Details
#connect(client) ⇒ Object
86 87 88 |
# File 'lib/equity/node.rb', line 86 def connect(client) raise(RuntimeError, 'static nodes cannot be connected') end |
#connected=(bool) ⇒ Object
82 83 84 |
# File 'lib/equity/node.rb', line 82 def connected=(bool) @client = bool end |
#disconnect ⇒ Object
90 91 92 |
# File 'lib/equity/node.rb', line 90 def disconnect raise(RuntimeError, 'static nodes cannot be disconnected') end |
#owns_socket?(socket) ⇒ Boolean
98 99 100 |
# File 'lib/equity/node.rb', line 98 def owns_socket?(socket) false end |
#sockets ⇒ Object
94 95 96 |
# File 'lib/equity/node.rb', line 94 def sockets [] end |