Method: CsvSource#each
- Defined in:
- lib/etl/csv_source.rb
#each ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/etl/csv_source.rb', line 15 def each CSV.open(filename, col_sep: delimeter, headers: headers, header_converters: :symbol, quote_char: quote_char) do |csv| csv.each do |row| yield(row.to_hash) end end end |