Class: Vines::Stream::Component::Start
- Defined in:
- lib/vines/stream/component/start.rb
Constant Summary
Constants inherited from State
Instance Attribute Summary
Attributes inherited from State
Instance Method Summary collapse
-
#initialize(stream, success = Handshake) ⇒ Start
constructor
A new instance of Start.
- #node(node) ⇒ Object
Methods inherited from State
Methods included from Log
Constructor Details
#initialize(stream, success = Handshake) ⇒ Start
Returns a new instance of Start.
7 8 9 |
# File 'lib/vines/stream/component/start.rb', line 7 def initialize(stream, success=Handshake) super end |
Instance Method Details
#node(node) ⇒ Object
11 12 13 14 15 |
# File 'lib/vines/stream/component/start.rb', line 11 def node(node) raise StreamErrors::NotAuthorized unless stream?(node) stream.start(node) advance end |