Class: TableStructure::Writer::Output

Inherits:
Object
  • Object
show all
Defined in:
lib/table_structure/writer.rb

Instance Method Summary collapse

Constructor Details

#initialize(output, method: :<<) ⇒ Output

Returns a new instance of Output.



40
41
42
43
# File 'lib/table_structure/writer.rb', line 40

def initialize(output, method: :<<)
  @output = output
  @method = method
end

Instance Method Details

#write(values) ⇒ Object



45
46
47
# File 'lib/table_structure/writer.rb', line 45

def write(values)
  @output.send(@method, values)
end