Module: Csv2schema::Formats
- Included in:
- CSV
- Defined in:
- lib/csv2schema/formats.rb
Instance Method Summary collapse
Instance Method Details
#apply_formats ⇒ Object
4 5 6 |
# File 'lib/csv2schema/formats.rb', line 4 def apply_formats @column_headers.each_with_index { |(k,v),i| @column_headers[k]['format'] = formats[i] } end |