module Trailblazer::Operation::Railway

End event: All subclasses of End:::Success are interpreted as “success”.

Constants

KwSignature

Call the user's steps with a differing API (inspired by Maciej Mensfeld) that only receives keyword args. The `options` keyword is the stateful context object

def my_step( params:, ** )
def my_step( params:, options:, ** )

Public Class Methods

Result(end_event, options, *) click to toggle source

@param options Context @param end_event The last emitted signal in a circuit is usually the end event.

# File lib/trailblazer/operation/railway.rb, line 14
def self.Result(end_event, options, *)
  Result.new(end_event.kind_of?(End::Success), options, end_event)
end
fail!() click to toggle source
# File lib/trailblazer/operation/railway.rb, line 8
def self.fail!     ; Activity::Left  end
fail_fast!() click to toggle source
# File lib/trailblazer/operation/railway.rb, line 10
def self.fail_fast!; Activity::FastTrack::FailFast end
pass!() click to toggle source
# File lib/trailblazer/operation/railway.rb, line 9
def self.pass!     ; Activity::Right end
pass_fast!() click to toggle source
# File lib/trailblazer/operation/railway.rb, line 11
def self.pass_fast!; Activity::FastTrack::PassFast end