Class: Stdout
- Inherits:
-
Object
- Object
- Stdout
- Defined in:
- lib/xify/output/stdout.rb
Instance Method Summary collapse
-
#initialize(config) ⇒ Stdout
constructor
A new instance of Stdout.
- #process(event) ⇒ Object
Constructor Details
#initialize(config) ⇒ Stdout
Returns a new instance of Stdout.
4 5 |
# File 'lib/xify/output/stdout.rb', line 4 def initialize(config) end |
Instance Method Details
#process(event) ⇒ Object
7 8 9 |
# File 'lib/xify/output/stdout.rb', line 7 def process(event) puts "[#{event.args[:time] || Time.now.iso8601}] #{event.author}: #{event.message}" end |