Class: TableStructure::Writer::Output
- Inherits:
-
Object
- Object
- TableStructure::Writer::Output
- Defined in:
- lib/table_structure/writer.rb
Instance Method Summary collapse
-
#initialize(output, method: :<<) ⇒ Output
constructor
A new instance of Output.
- #write(values) ⇒ Object
Constructor Details
#initialize(output, method: :<<) ⇒ Output
Returns a new instance of Output.
102 103 104 105 |
# File 'lib/table_structure/writer.rb', line 102 def initialize(output, method: :<<) @output = output @method = method end |
Instance Method Details
#write(values) ⇒ Object
107 108 109 |
# File 'lib/table_structure/writer.rb', line 107 def write(values) @output.send(@method, values) end |