Sha256: 942534dff2b25776374fbe11ac49d87c233006baf9ffa07fa18fae5631c21ced

Contents?: true

Size: 818 Bytes

Versions: 171

Compression:

Stored size: 818 Bytes

Contents

module Expressir
  module Model
    module Declarations
      # Specified in ISO 10303-11:2004
      # - section 9.5.4 Local variables
      class Variable < Declaration
        include Identifier

        model_attr_accessor :type, 'DataType'
        model_attr_accessor :expression, 'Expression'

        # @param [Hash] options
        # @option (see Identifier#initialize_identifier)
        # @option options [DataType] :type
        # @option options [Expression] :expression
        def initialize(options = {})
          initialize_identifier(options)

          @type = options[:type]
          @expression = options[:expression]

          super
        end

        # @return [Array<Declaration>]
        def children
          [
            *remark_items
          ]
        end
      end
    end
  end
end

Version data entries

171 entries across 171 versions & 1 rubygems

Version Path
expressir-1.3.0.pre.1-x86_64-darwin lib/expressir/model/declarations/variable.rb
expressir-1.3.0.pre.1-x64-mingw32 lib/expressir/model/declarations/variable.rb
expressir-1.3.0.pre.1-x64-mingw-ucrt lib/expressir/model/declarations/variable.rb
expressir-1.3.0.pre.1-arm64-darwin lib/expressir/model/declarations/variable.rb
expressir-1.3.0.pre.1-aarch64-linux-gnu lib/expressir/model/declarations/variable.rb
expressir-1.2.11 lib/expressir/model/declarations/variable.rb
expressir-1.2.11-x86_64-linux lib/expressir/model/declarations/variable.rb
expressir-1.2.11-x86_64-darwin lib/expressir/model/declarations/variable.rb
expressir-1.2.11-x64-mingw32 lib/expressir/model/declarations/variable.rb
expressir-1.2.11-x64-mingw-ucrt lib/expressir/model/declarations/variable.rb
expressir-1.2.11-arm64-darwin lib/expressir/model/declarations/variable.rb
expressir-1.2.11-aarch64-linux lib/expressir/model/declarations/variable.rb
expressir-1.2.10 lib/expressir/model/declarations/variable.rb
expressir-1.2.10-x86_64-linux lib/expressir/model/declarations/variable.rb
expressir-1.2.10-x86_64-darwin lib/expressir/model/declarations/variable.rb
expressir-1.2.10-x64-mingw32 lib/expressir/model/declarations/variable.rb
expressir-1.2.10-x64-mingw-ucrt lib/expressir/model/declarations/variable.rb
expressir-1.2.10-arm64-darwin lib/expressir/model/declarations/variable.rb
expressir-1.2.10-aarch64-linux lib/expressir/model/declarations/variable.rb
expressir-1.2.9 lib/expressir/model/declarations/variable.rb