class Nocode::Steps::Dataset::Prepend
Add entries specified in the options to the beginning of the specified register’s existing entries.
Public Instance Methods
perform()
click to toggle source
# File lib/nocode/steps/dataset/prepend.rb, line 11 def perform registers[register_option] = array(registers[register_option]) array(entries_option).reverse_each do |entry| registers[register_option].prepend(entry) end end