Class: Statique::CLI::Server::EventStream
- Inherits:
-
Object
- Object
- Statique::CLI::Server::EventStream
- Defined in:
- lib/statique/cli/server.rb
Instance Method Summary collapse
-
#initialize(type) ⇒ EventStream
constructor
A new instance of EventStream.
- #puts(message) ⇒ Object
- #sync ⇒ Object
- #write(message) ⇒ Object
Constructor Details
#initialize(type) ⇒ EventStream
Returns a new instance of EventStream.
51 52 53 |
# File 'lib/statique/cli/server.rb', line 51 def initialize(type) @type = type end |
Instance Method Details
#puts(message) ⇒ Object
55 56 57 |
# File 'lib/statique/cli/server.rb', line 55 def puts() @statique.ui.public_send(@type, ) end |
#sync ⇒ Object
63 64 65 |
# File 'lib/statique/cli/server.rb', line 63 def sync true end |
#write(message) ⇒ Object
59 60 61 |
# File 'lib/statique/cli/server.rb', line 59 def write() puts() end |