Class: TablePal::CSVFormatted
- Inherits:
-
Object
- Object
- TablePal::CSVFormatted
- Defined in:
- lib/csv_formatted.rb
Instance Method Summary collapse
-
#initialize(table:) ⇒ CSVFormatted
constructor
A new instance of CSVFormatted.
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 |