class Decidim::TermCustomizer::Import::Readers::CSV

Imports any exported CSV file to local objects. It transforms the import data using the parser into the final target objects.

Constants

MIME_TYPE

Public Instance Methods

read_rows() { |row, index| ... } click to toggle source
# File lib/decidim/term_customizer/import/readers/csv.rb, line 14
def read_rows
  ::CSV.read(file, col_sep: ";").each_with_index do |row, index|
    yield row, index
  end
end