Class: KLog::LogStructure::TablePrintIo
- Inherits:
-
Object
- Object
- KLog::LogStructure::TablePrintIo
- Defined in:
- lib/k_log/log_structure.rb
Overview
Override table_print IO stream so that it writes into the structure
Instance Method Summary collapse
-
#initialize(log_structure) ⇒ TablePrintIo
constructor
A new instance of TablePrintIo.
- #puts(line) ⇒ Object
Constructor Details
#initialize(log_structure) ⇒ TablePrintIo
Returns a new instance of TablePrintIo.
321 322 323 |
# File 'lib/k_log/log_structure.rb', line 321 def initialize(log_structure) @log_structure = log_structure end |
Instance Method Details
#puts(line) ⇒ Object
325 326 327 |
# File 'lib/k_log/log_structure.rb', line 325 def puts(line) @log_structure.add_line(line) end |