Module: Trailblazer::Operation::Railway::Macaroni
- Defined in:
- lib/trailblazer/operation/railway/macaroni.rb
Overview
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:, ** )
Defined Under Namespace
Classes: Option
Class Method Summary collapse
Class Method Details
.call(user_proc) ⇒ Object
9 10 11 |
# File 'lib/trailblazer/operation/railway/macaroni.rb', line 9 def self.call(user_proc) Activity::TaskBuilder::Task.new(Trailblazer::Option.build(Macaroni::Option, user_proc), user_proc) end |