Module: Pipetree::Railway::Add
Overview
Naming:
-
Track
-
Tie: the callable that’s usually an On instance and is sitting directly in the pipe, on a Track.
-
Strut: the callable that’s wrapped by the Tie and implements the decider logic (e.g. And).
-
Step: the user callable with interface ‘Step.(input, options)`.
Instance Method Summary collapse
Instance Method Details
#add(track, strut, options = {}) ⇒ Object
27 28 29 |
# File 'lib/pipetree/railway.rb', line 27 def add(track, strut, ={}) _insert On.new(track, strut), , track, strut end |