Module: Pipetree::Railway::Add

Extended by:
Uber::Delegates
Included in:
Pipetree::Railway
Defined in:
lib/pipetree/railway.rb

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, options={})
  _insert On.new(track, strut), options, track, strut
end