Method: Fech::Csv.parse_row

Defined in:
lib/fech/csv.rb

.parse_row(file_path, opts) ⇒ Object

Loads a given file and parses it into an array, line by line. Basic wrapper around FasterCSV.foreach

Parameters:

  • file_path (String)

    location of the filing on the file system



26
27
28
# File 'lib/fech/csv.rb', line 26

def self.parse_row(file_path, opts)
  foreach(file_path, clean_opts(opts)) { |row| yield row }
end