Class: Pipetree::Railway::And

Inherits:
Strut
  • Object
show all
Defined in:
lib/pipetree/railway.rb

Overview

Call step proc and return (Right || Left).

Constant Summary collapse

Decider =

Deciders return the new track.

->(result, config, *) do
  result ?
    config[:on_true]  || Right :
    config[:on_false] || Left
end

Method Summary

Methods inherited from Strut

#call, #initialize

Constructor Details

This class inherits a constructor from Pipetree::Railway::Strut