Class: TablePal::CSVUnformatted

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

Instance Method Summary collapse

Constructor Details

#initialize(table:) ⇒ CSVUnformatted

Returns a new instance of CSVUnformatted.



4
5
6
7
8
# File 'lib/csv_unformatted.rb', line 4

def initialize(table:)
  table.rows.each do |row|
    puts row.cells_including_empty.map(&:content).join(',')
  end
end