Class: Kiba::Extend::Transforms::Clean::EmptyFieldGroups
- Inherits:
-
Object
- Object
- Kiba::Extend::Transforms::Clean::EmptyFieldGroups
- Defined in:
- lib/kiba/extend/transforms/clean.rb
Instance Method Summary collapse
-
#initialize(groups:, sep:, use_nullvalue: false) ⇒ EmptyFieldGroups
constructor
A new instance of EmptyFieldGroups.
-
#process(row) ⇒ Object
Constructor Details
#initialize(groups:, sep:, use_nullvalue: false) ⇒ EmptyFieldGroups
Returns a new instance of EmptyFieldGroups.
224 225 226 227 228 |
# File 'lib/kiba/extend/transforms/clean.rb', line 224 def initialize(groups:, sep:, use_nullvalue: false) @groups = groups @sep = sep @use_nullvalue = use_nullvalue end |
Instance Method Details
#process(row) ⇒ Object
231 232 233 234 |
# File 'lib/kiba/extend/transforms/clean.rb', line 231 def process(row) @groups.each { |group| process_group(row, group) } row end |