class Pipetree::Railway::Strut
Public Class Methods
new(proc, config={})
click to toggle source
# File lib/pipetree/railway.rb, line 71 def initialize(proc, config={}) @proc = proc @config = config end
Public Instance Methods
call(last, input, options)
click to toggle source
# File lib/pipetree/railway.rb, line 76 def call(last, input, options) result = @proc.(input, options) # call the actual step. [self.class::Decider.(result, @config, last, input, options), input] # decide about the track and return Flow-compliant response. end