Class: Trailblazer::Activity::Path::DSL::State

Inherits:
Linear::State
  • Object
show all
Defined in:
lib/trailblazer/activity/path.rb

Overview

Implements the actual API (#step and friends). This can be used later to create faster DSLs where the activity is compiled only once, a la

Path() do  ... end

Direct Known Subclasses

Railway::DSL::State

Instance Method Summary collapse

Instance Method Details

#step(*args) ⇒ Object



173
174
175
# File 'lib/trailblazer/activity/path.rb', line 173

def step(*args)
  seq = Linear::Strategy.task_for!(self, :step, *args) # mutate @state
end