Class: Leftovers::Processors::Itself
- Inherits:
-
Object
- Object
- Leftovers::Processors::Itself
- Includes:
- ComparableInstance
- Defined in:
- lib/leftovers/processors/itself.rb
Instance Method Summary collapse
-
#initialize(then_processor) ⇒ Itself
constructor
A new instance of Itself.
- #process(_str, current_node, matched_node, acc) ⇒ Object
Methods included from ComparableInstance
Constructor Details
#initialize(then_processor) ⇒ Itself
Returns a new instance of Itself.
8 9 10 11 12 |
# File 'lib/leftovers/processors/itself.rb', line 8 def initialize(then_processor) @then_processor = then_processor freeze end |
Instance Method Details
#process(_str, current_node, matched_node, acc) ⇒ Object
14 15 16 |
# File 'lib/leftovers/processors/itself.rb', line 14 def process(_str, current_node, matched_node, acc) @then_processor.process(current_node.to_s, current_node, matched_node, acc) end |