Class: Lutaml::Lml::Document
- Inherits:
-
Model::Serializable
- Object
- Model::Serializable
- Lutaml::Lml::Document
- Defined in:
- lib/lutaml/lml/models/document.rb
Instance Method Summary collapse
-
#all_classes ⇒ Object
All class-like entities on the document.
-
#classifiable_classes ⇒ Object
Class-like entities that can own associations.
Instance Method Details
#all_classes ⇒ Object
All class-like entities on the document. Used by resolvers and formatters that need to walk every classifiable type without caring which collection holds it.
34 35 36 |
# File 'lib/lutaml/lml/models/document.rb', line 34 def all_classes classes + enums + data_types + primitives end |
#classifiable_classes ⇒ Object
Class-like entities that can own associations. Excludes enums (which have no attributes/associations of their own).
40 41 42 |
# File 'lib/lutaml/lml/models/document.rb', line 40 def classifiable_classes classes + data_types + primitives end |