Method: Trailblazer::Activity::DSL::Linear::VariableMapping.default_output_ctx
- Defined in:
- lib/trailblazer/activity/dsl/linear/feature/variable_mapping/runtime.rb
.default_output_ctx(wrap_ctx, original_args) ⇒ Object
The default :output filter only returns the “mutable” part of the inner ctx. This means only variables added using = are merged on the outside.
259 260 261 262 263 264 265 |
# File 'lib/trailblazer/activity/dsl/linear/feature/variable_mapping/runtime.rb', line 259 def default_output_ctx(wrap_ctx, original_args) new_ctx = wrap_ctx[:returned_ctx] _wrapped, mutable = new_ctx.decompose # `_wrapped` is what the `:input` filter returned, `mutable` is what the task wrote to `scoped`. merge_variables(mutable, wrap_ctx, original_args) end |