Sha256: 827d6e7b90800508c7b5daf6210bfe4431c8fd879dc9351c3ccf0191f5460638

Contents?: true

Size: 406 Bytes

Versions: 3

Compression:

Stored size: 406 Bytes

Contents

# frozen_string_literal: true

require_relative 'statement'

module Basic101

  class DimStatement < Statement

    def initialize(array_references)
      @array_references = array_references
    end

    def execute(runtime)
      @array_references.each do |reference|
        reference.dimension_array runtime
      end
    end

    protected

    def state
      [@array_references]
    end

  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
basic101-1.0.2 lib/basic101/dim_statement.rb
basic101-1.0.1 lib/basic101/dim_statement.rb
basic101-1.0.0 lib/basic101/dim_statement.rb