module Teckel::Chain
Railway style execution of multiple Operations.
-
Runs multiple Operations (steps) in order.
-
The output of an earlier step is passed as input to the next step.
-
Any failure will stop the execution chain (none of the later steps is called).
-
All Operations (steps) must return a {Teckel::Result}
-
The result is wrapped into a {Teckel::Chain::Result}
@see Teckel::Operation#result!
Constants
- Step
Internal wrapper of a step definition
Public Class Methods
included(receiver)
click to toggle source
# File lib/teckel/chain.rb, line 76 def self.included(receiver) receiver.extend Config receiver.extend ClassMethods end