Class: Lutaml::Uml::PrimitiveType
- Inherits:
-
DataType
- Object
- TopElement
- Classifier
- DataType
- Lutaml::Uml::PrimitiveType
- Defined in:
- lib/lutaml/uml/primitive_type.rb
Instance Attribute Summary collapse
-
#keyword ⇒ Object
readonly
Returns the value of attribute keyword.
Attributes inherited from DataType
#associations, #attributes, #constraints, #data_types, #is_abstract, #members, #modifier, #nested_classifier, #operations, #type
Attributes inherited from Classifier
Attributes inherited from TopElement
#comments, #definition, #href, #name, #namespace, #stereotype, #visibility, #xmi_id, #xmi_uuid
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ PrimitiveType
constructor
A new instance of PrimitiveType.
Methods inherited from DataType
Methods included from HasMembers
Methods inherited from TopElement
Methods included from HasAttributes
Constructor Details
#initialize(attributes = {}) ⇒ PrimitiveType
Returns a new instance of PrimitiveType.
8 9 10 11 |
# File 'lib/lutaml/uml/primitive_type.rb', line 8 def initialize(attributes = {}) super @keyword = "primitive" end |
Instance Attribute Details
#keyword ⇒ Object (readonly)
Returns the value of attribute keyword.
6 7 8 |
# File 'lib/lutaml/uml/primitive_type.rb', line 6 def keyword @keyword end |