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.



319
320
321
# File 'lib/k_log/log_structure.rb', line 319

def initialize(log_structure)
  @log_structure = log_structure
end

Instance Method Details

#puts(line) ⇒ Object



323
324
325
# File 'lib/k_log/log_structure.rb', line 323

def puts(line)
  @log_structure.add_line(line)
end