Class: LogMessage
- Defined in:
- lib/test_driven_lighting/messages/log_message.rb
Overview
LogMessage - prints a message to the log (currently just whatever screen is running the listener)
Instance Attribute Summary
Attributes inherited from Message
Instance Method Summary collapse
-
#initialize(message) ⇒ LogMessage
constructor
A new instance of LogMessage.
- #process ⇒ Object
Methods inherited from Message
Constructor Details
#initialize(message) ⇒ LogMessage
Returns a new instance of LogMessage.
6 7 8 |
# File 'lib/test_driven_lighting/messages/log_message.rb', line 6 def initialize super end |
Instance Method Details
#process ⇒ Object
10 11 12 13 |
# File 'lib/test_driven_lighting/messages/log_message.rb', line 10 def process content = .fetch 'content' puts "%s %s" % [, content] end |