Class: TotalIn::LineProcessors::Names

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



88
89
90
91
92
93
94
# File 'lib/total_in/line_processors.rb', line 88

def call line, contexts
  contexts = target_class.add_to_contexts contexts

  contexts.current.name = line.values.join " "

  contexts
end