Class: Processor::Subroutine::Recursion
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Processor::Subroutine::Recursion
- Defined in:
- lib/processor/subroutine/recursion.rb
Instance Method Summary collapse
-
#initialize(processor) ⇒ Recursion
constructor
A new instance of Recursion.
- #process ⇒ Object
Constructor Details
#initialize(processor) ⇒ Recursion
Returns a new instance of Recursion.
7 8 9 10 11 12 |
# File 'lib/processor/subroutine/recursion.rb', line 7 def initialize(processor) # recursion depends on counter subroutine processor = Counter.new(processor) unless processor.respond_to? :processed_records_count super processor end |
Instance Method Details
#process ⇒ Object
14 15 16 17 |
# File 'lib/processor/subroutine/recursion.rb', line 14 def process(*) recursion_preventer super end |