Class: Expressir::Model::Declarations::Procedure

Inherits:
ModelElement
  • Object
show all
Includes:
Identifier
Defined in:
lib/expressir/model/declarations/procedure.rb

Overview

Specified in ISO 10303-11:2004

  • section 9.5.2 Procedure

Constant Summary

Constants inherited from ModelElement

ModelElement::POLYMORPHIC_CLASS_MAP, ModelElement::SKIP_ATTRIBUTES

Instance Attribute Summary

Attributes inherited from ModelElement

#parent

Instance Method Summary collapse

Methods included from Identifier

included

Methods inherited from ModelElement

#children_by_id, #find, #initialize, #path, #reset_children_by_id, #source, #to_s

Constructor Details

This class inherits a constructor from Expressir::Model::ModelElement

Instance Method Details

#childrenArray<Declaration>

Returns:

  • (Array<Declaration>)


34
35
36
37
38
39
40
41
42
43
44
45
46
47
# File 'lib/expressir/model/declarations/procedure.rb', line 34

def children
  [
    *parameters,
    *types,
    *types&.flat_map(&:enumeration_items),
    *entities,
    *subtype_constraints,
    *functions,
    *procedures,
    *constants,
    *variables,
    *remark_items,
  ]
end