Sha256: 25526a34fc1a6bbceade03585a5007223b8f89bc084ffc5754b3a8981d4292ae

Contents?: true

Size: 269 Bytes

Versions: 7

Compression:

Stored size: 269 Bytes

Contents

# frozen_string_literal: true

module Nocode
  module Steps
    # Set a register's value to the value option specified.
    class Set < Step
      option :register, :value

      def perform
        registers[register_option] = value_option
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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