Class: Expressir::Model::DataTypes::Generic

Inherits:
Expressir::Model::DataType show all
Includes:
Identifier
Defined in:
lib/expressir/model/data_types/generic.rb

Overview

Specified in ISO 10303-11:2004

  • section 9.5.3.2 Generic data type

Instance Attribute Summary

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 = {}) ⇒ Generic

Returns a new instance of Generic.

Parameters:

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

Options Hash (options):



11
12
13
14
15
# File 'lib/expressir/model/data_types/generic.rb', line 11

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

  super
end

Instance Method Details

#childrenArray<Declaration>

Returns:



18
19
20
21
22
# File 'lib/expressir/model/data_types/generic.rb', line 18

def children
  [
    *remark_items,
  ]
end