Sha256: 2334cd9629c98ffbcaf777f83b65a74cac304c9ca72bb454f7fb0757210c69c1

Contents?: true

Size: 359 Bytes

Versions: 3

Compression:

Stored size: 359 Bytes

Contents

require_relative 'statement'

module Basic101

  class ReadStatement < Statement

    def initialize(references)
      @references = references
    end

    def execute(runtime)
      @references.each do |reference|
        reference.assign(runtime, runtime.get_data_item)
      end
    end

    protected

    def state
      @references
    end

  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
basic101-0.4.0 lib/basic101/read_statement.rb
basic101-0.2.0 lib/basic101/read_statement.rb
basic101-0.1.0 lib/basic101/read_statement.rb