Method: Fech::MapGenerator.remove_ignored_fields
- Defined in:
- lib/fech/map_generator.rb
.remove_ignored_fields(row, ignore) ⇒ Object
Remove both the row type from the beginning of the row, and any fields marked as “ignore” in sources/headers/ignore.csv
215 216 217 218 |
# File 'lib/fech/map_generator.rb', line 215 def self.remove_ignored_fields(row, ignore) data = row[1..-1].compact # strip off the row type data.reject { |f| ignore.include?(f) } end |