Class: Statique::CLI::Server::EventStream

Inherits:
Object
  • Object
show all
Defined in:
lib/statique/cli/server.rb

Instance Method Summary collapse

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(message)
  @statique.ui.public_send(@type, message)
end

#syncObject



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(message)
  puts(message)
end