Sha256: eb50b37f36a07dffbc8db96af408645a67eddf98b60d17e8c5f11d836c23ac50

Contents?: true

Size: 500 Bytes

Versions: 6

Compression:

Stored size: 500 Bytes

Contents

# frozen_string_literal: true

module Nocode
  module Steps
    module Dataset
      # Add entries specified in the options to the end of the specified register's
      # existing entries.
      class Append < Step
        option :entries, :register

        def perform
          registers[register_option] = array(registers[register_option])

          array(entries_option).each do |entry|
            registers[register_option].append(entry)
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
nocode-0.0.10 lib/nocode/steps/dataset/append.rb
nocode-0.0.9 lib/nocode/steps/dataset/append.rb
nocode-0.0.8 lib/nocode/steps/dataset/append.rb
nocode-0.0.7 lib/nocode/steps/dataset/append.rb
nocode-0.0.6 lib/nocode/steps/dataset/append.rb
nocode-0.0.5 lib/nocode/steps/dataset/append.rb