Class: Output::Stdout

Inherits:
Object
  • Object
show all
Defined in:
lib/xify/output/stdout.rb

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ Stdout

Returns a new instance of Stdout.



5
6
# File 'lib/xify/output/stdout.rb', line 5

def initialize(config)
end

Instance Method Details

#process(event) ⇒ Object



8
9
10
# File 'lib/xify/output/stdout.rb', line 8

def process(event)
  puts "[#{(event.args[:time] || Time.now).iso8601}] #{event.author}:\n#{event.message}"
end