Class: TotalIn::LineProcessors::Locality

Inherits:
WithTargetClass show all
Defined in:
lib/total_in/line_processors.rb

Instance Attribute Summary

Attributes inherited from WithTargetClass

#target_class

Instance Method Summary collapse

Methods inherited from WithTargetClass

#initialize

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