Class: Desmoservice::LogHandler
- Inherits:
-
Object
- Object
- Desmoservice::LogHandler
- Defined in:
- lib/log_handler.rb
Instance Attribute Summary collapse
-
#destination ⇒ Object
readonly
Returns the value of attribute destination.
Instance Method Summary collapse
- #add_log_message(log_message) ⇒ Object
-
#initialize(destination) ⇒ LogHandler
constructor
A new instance of LogHandler.
- #new_line ⇒ Object
Constructor Details
#initialize(destination) ⇒ LogHandler
Returns a new instance of LogHandler.
6 7 8 |
# File 'lib/log_handler.rb', line 6 def initialize(destination) @destination = destination end |
Instance Attribute Details
#destination ⇒ Object (readonly)
Returns the value of attribute destination.
4 5 6 |
# File 'lib/log_handler.rb', line 4 def destination @destination end |
Instance Method Details
#add_log_message(log_message) ⇒ Object
10 11 12 |
# File 'lib/log_handler.rb', line 10 def () destination << << "\n" end |
#new_line ⇒ Object
14 15 16 |
# File 'lib/log_handler.rb', line 14 def new_line() destination << "\n" end |