Class: Trailblazer::Activity::DSL::Linear::VariableMapping::AddVariables

Inherits:
SetVariable
  • Object
show all
Defined in:
lib/trailblazer/activity/dsl/linear/feature/variable_mapping/runtime.rb

Overview

Add a hash of variables to aggregate after running a filter (which returns a hash!). Note that we only use those for “old-style” callables that produce hashes.

Defined Under Namespace

Classes: Output

Instance Attribute Summary

Attributes inherited from SetVariable

#name

Class Method Summary collapse

Methods inherited from SetVariable

#call, call_filter, #initialize, set_variable_for_filter

Constructor Details

This class inherits a constructor from Trailblazer::Activity::DSL::Linear::VariableMapping::SetVariable

Class Method Details

.set_variable(variables, write_name, wrap_ctx, original_args) ⇒ Object



201
202
203
204
# File 'lib/trailblazer/activity/dsl/linear/feature/variable_mapping/runtime.rb', line 201

def self.set_variable(variables, write_name, wrap_ctx, original_args)
  wrap_ctx, _ = VariableMapping.merge_variables(variables, wrap_ctx, original_args)
  wrap_ctx
end