Class: Vines::Stream::Server::FinalRestart
- Inherits:
-
Vines::Stream::State
- Object
- Vines::Stream::State
- Vines::Stream::Server::FinalRestart
- Defined in:
- lib/vines/stream/server/final_restart.rb
Constant Summary
Constants inherited from Vines::Stream::State
Vines::Stream::State::BODY, Vines::Stream::State::STREAM
Instance Attribute Summary
Attributes inherited from Vines::Stream::State
Instance Method Summary collapse
-
#initialize(stream, success = Ready) ⇒ FinalRestart
constructor
A new instance of FinalRestart.
- #node(node) ⇒ Object
Methods inherited from Vines::Stream::State
Methods included from Log
Constructor Details
#initialize(stream, success = Ready) ⇒ FinalRestart
Returns a new instance of FinalRestart.
7 8 9 |
# File 'lib/vines/stream/server/final_restart.rb', line 7 def initialize(stream, success=Ready) super end |
Instance Method Details
#node(node) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/vines/stream/server/final_restart.rb', line 11 def node(node) raise StreamErrors::NotAuthorized unless stream?(node) stream.start(node) stream.write('<stream:features/>') stream.router << stream advance end |