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.
322 323 324 |
# File 'lib/k_log/log_structure.rb', line 322 def initialize(log_structure) @log_structure = log_structure end |
Instance Method Details
#puts(line) ⇒ Object
326 327 328 |
# File 'lib/k_log/log_structure.rb', line 326 def puts(line) @log_structure.add_line(line) end |