Class: Pipetree::Flow::Stay

Inherits:
And
  • Object
show all
Defined in:
lib/pipetree/flow.rb

Overview

Call step proc and return incoming last step.

Instance Method Summary collapse

Methods inherited from And

#initialize

Constructor Details

This class inherits a constructor from Pipetree::Flow::And

Instance Method Details

#call(last, input, options) ⇒ Object



103
104
105
106
# File 'lib/pipetree/flow.rb', line 103

def call(last, input, options)
  @proc.(input, options)
  [last, input] # simply pass through the current direction: either [Left, input] or [Right, input].
end