Class: TablePal::CSVFormatted

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

Instance Method Summary collapse

Constructor Details

#initialize(table:) ⇒ CSVFormatted



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

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