Class: TotalIn::LineHandlers::Handler
- Inherits:
-
Struct
- Object
- Struct
- TotalIn::LineHandlers::Handler
- Defined in:
- lib/total_in/line_handlers.rb
Instance Attribute Summary collapse
-
#parser ⇒ Object
Returns the value of attribute parser.
-
#processor ⇒ Object
Returns the value of attribute processor.
Instance Method Summary collapse
Instance Attribute Details
#parser ⇒ Object
Returns the value of attribute parser
91 92 93 |
# File 'lib/total_in/line_handlers.rb', line 91 def parser @parser end |
#processor ⇒ Object
Returns the value of attribute processor
91 92 93 |
# File 'lib/total_in/line_handlers.rb', line 91 def processor @processor end |
Instance Method Details
#process(line, contexts) ⇒ Object
92 93 94 95 96 |
# File 'lib/total_in/line_handlers.rb', line 92 def process line, contexts line_parser = self.parser.new(line) processor.call line_parser, contexts end |