Class: TotalIn::LineProcessors::Locality
- Inherits:
-
WithTargetClass
- Object
- WithTargetClass
- TotalIn::LineProcessors::Locality
- Defined in:
- lib/total_in/line_processors.rb
Instance Attribute Summary
Attributes inherited from WithTargetClass
Instance Method Summary collapse
Methods inherited from WithTargetClass
Constructor Details
This class inherits a constructor from TotalIn::LineProcessors::WithTargetClass
Instance Method Details
#call(line, contexts) ⇒ Object
109 110 111 112 113 114 115 |
# File 'lib/total_in/line_processors.rb', line 109 def call line, contexts contexts = target_class.add_to_contexts contexts contexts.current.assign_attributes line.attributes contexts end |