Class: CsvPiper::PreProcessors::RemoveEmptyColumns
- Inherits:
-
Object
- Object
- CsvPiper::PreProcessors::RemoveEmptyColumns
- Defined in:
- lib/csv_piper/pre_processors/remove_extra_columns.rb
Instance Method Summary collapse
Instance Method Details
#process(origin, errors) ⇒ Object
4 5 6 7 |
# File 'lib/csv_piper/pre_processors/remove_extra_columns.rb', line 4 def process(origin, errors) modified_origin = origin.reject { |key, _| key.nil? || key.strip.empty? } [modified_origin, errors] end |