Class: Nocode::Steps::Dataset::Coalesce
- Inherits:
-
Nocode::Step
- Object
- Nocode::Step
- Nocode::Steps::Dataset::Coalesce
- Defined in:
- lib/nocode/steps/dataset/coalesce.rb
Overview
Combine all specified from_registers into one dataset and place in the specified to_register. If anything currently exists in the to_register then it will be coerced to an array and prepended to the beginning.
Constant Summary
Constants included from Util::Optionable
Util::Optionable::OPTION_PREFIX
Instance Attribute Summary
Attributes inherited from Nocode::Step
#context, #name, #options, #type
Instance Method Summary collapse
Methods inherited from Nocode::Step
Methods included from Util::Optionable
included, #method_missing, #options, #respond_to_missing?
Methods included from Util::Arrayable
Constructor Details
This class inherits a constructor from Nocode::Step
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Nocode::Util::Optionable
Instance Method Details
#perform ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/nocode/steps/dataset/coalesce.rb', line 12 def perform registers[to_register_option] = array(registers[to_register_option]) array(from_registers_option).each do |from_register| registers[to_register_option] += array(registers[from_register]) end end |