Sha256: 86dc846d3a4947c2afa071d58e56b32a63a35447d1787102accffc40d7a5dcd6

Contents?: true

Size: 291 Bytes

Versions: 7

Compression:

Stored size: 291 Bytes

Contents

# frozen_string_literal: true

module Nocode
  module Steps
    # Shallow-copy one register to another.
    class Copy < Step
      option :from_register, :to_register

      def perform
        registers[to_register_option] = registers[from_register_option].dup
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
nocode-0.0.10 lib/nocode/steps/copy.rb
nocode-0.0.9 lib/nocode/steps/copy.rb
nocode-0.0.8 lib/nocode/steps/copy.rb
nocode-0.0.7 lib/nocode/steps/copy.rb
nocode-0.0.6 lib/nocode/steps/copy.rb
nocode-0.0.5 lib/nocode/steps/copy.rb
nocode-0.0.4 lib/nocode/steps/copy.rb