Class: Expressir::Model::Declarations::Parameter

Inherits:
Expressir::Model::Declaration show all
Includes:
Identifier
Defined in:
lib/expressir/model/declarations/parameter.rb

Overview

Specified in ISO 10303-11:2004

  • section 9.5.3 Parameters

Instance Attribute Summary collapse

Attributes included from Identifier

#id, #remark_items, #remarks, #source

Attributes inherited from ModelElement

#parent

Instance Method Summary collapse

Methods inherited from ModelElement

#children_by_id, #find, from_hash, model_attr_accessor, model_attrs, #path, #reset_children_by_id, #to_hash, #to_liquid, #to_s

Constructor Details

#initialize(options = {}) ⇒ Parameter

Returns a new instance of Parameter.

Parameters:

  • options (Hash) (defaults to: {})

Options Hash (options):



16
17
18
19
20
21
22
23
# File 'lib/expressir/model/declarations/parameter.rb', line 16

def initialize(options = {})
  initialize_identifier(options)

  @var = options[:var]
  @type = options[:type]

  super
end

Instance Attribute Details

#typeDataType

Returns:



10
# File 'lib/expressir/model/declarations/parameter.rb', line 10

model_attr_accessor :type, 'DataType'

#varBoolean

Returns:

  • (Boolean)


9
# File 'lib/expressir/model/declarations/parameter.rb', line 9

model_attr_accessor :var, 'Boolean'

Instance Method Details

#childrenArray<Declaration>

Returns:



26
27
28
29
30
# File 'lib/expressir/model/declarations/parameter.rb', line 26

def children
  [
    *remark_items
  ]
end