Class: KLog::LogStructure::TablePrintIo

Inherits:
Object
  • Object
show all
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

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