class Nocode::Steps::Dataset::Coalesce
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.
Public Instance Methods
perform()
click to toggle source
# 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