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.



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