Sha256: 2a168aedd4b9c435e424549737f564df865cc886b4af95d6b22e2334fef633bd

Contents?: true

Size: 874 Bytes

Versions: 171

Compression:

Stored size: 874 Bytes

Contents

module Expressir
  module Model
    module Statements
      # Specified in ISO 10303-11:2004
      # - section 13.2 Alias statement
      class Alias < Statement
        include Identifier

        model_attr_accessor :expression, 'Expression'
        model_attr_accessor :statements, 'Array<Statement>'

        # @param [Hash] options
        # @option (see Identifier#initialize_identifier)
        # @option options [Expression] :expression
        # @option options [Array<Statement>] :statements
        def initialize(options = {})
          initialize_identifier(options)

          @expression = options[:expression]
          @statements = options[:statements] || []

          super
        end

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

Version data entries

171 entries across 171 versions & 1 rubygems

Version Path
expressir-1.2.9-x86_64-linux lib/expressir/model/statements/alias.rb
expressir-1.2.9-x86_64-darwin lib/expressir/model/statements/alias.rb
expressir-1.2.9-x64-mingw32 lib/expressir/model/statements/alias.rb
expressir-1.2.9-x64-mingw-ucrt lib/expressir/model/statements/alias.rb
expressir-1.2.9-arm64-darwin lib/expressir/model/statements/alias.rb
expressir-1.2.9-aarch64-linux lib/expressir/model/statements/alias.rb
expressir-1.2.8 lib/expressir/model/statements/alias.rb
expressir-1.2.8-x86_64-linux lib/expressir/model/statements/alias.rb
expressir-1.2.8-x86_64-darwin lib/expressir/model/statements/alias.rb
expressir-1.2.8-x64-mingw32 lib/expressir/model/statements/alias.rb
expressir-1.2.8-x64-mingw-ucrt lib/expressir/model/statements/alias.rb
expressir-1.2.8-arm64-darwin lib/expressir/model/statements/alias.rb
expressir-1.2.8-aarch64-linux lib/expressir/model/statements/alias.rb
expressir-1.2.7 lib/expressir/model/statements/alias.rb
expressir-1.2.7-x86_64-linux lib/expressir/model/statements/alias.rb
expressir-1.2.7-x86_64-darwin lib/expressir/model/statements/alias.rb
expressir-1.2.7-x64-mingw32 lib/expressir/model/statements/alias.rb
expressir-1.2.7-x64-mingw-ucrt lib/expressir/model/statements/alias.rb
expressir-1.2.7-arm64-darwin lib/expressir/model/statements/alias.rb
expressir-1.2.7-aarch64-linux lib/expressir/model/statements/alias.rb