Method: Trailblazer::Macro.task_wrap_for_iterated

Defined in:
lib/trailblazer/macro/each.rb

.task_wrap_for_iterated(dsl_options) ⇒ Object



161
162
163
164
165
166
167
168
# File 'lib/trailblazer/macro/each.rb', line 161

def self.task_wrap_for_iterated(dsl_options)
  # TODO: maybe the DSL API could be more "open" here? I bet it is, but I'm too lazy.
  activity = Class.new(Activity::Railway) do
    step({task: "iterated"}.merge(dsl_options))
  end

  activity.to_h[:config][:wrap_static]["iterated"]
end