Class: Lutaml::Uml::Class
- Inherits:
-
Classifier
- Object
- TopElement
- Classifier
- Lutaml::Uml::Class
- Includes:
- HasMembers
- Defined in:
- lib/lutaml/uml/class.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#associations ⇒ Object
Returns the value of attribute associations.
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#constraints ⇒ Object
Returns the value of attribute constraints.
-
#data_types ⇒ Object
Returns the value of attribute data_types.
-
#is_abstract ⇒ Object
Returns the value of attribute is_abstract.
-
#members ⇒ Object
readonly
Returns the value of attribute members.
-
#modifier ⇒ Object
Returns the value of attribute modifier.
-
#nested_classifier ⇒ Object
Returns the value of attribute nested_classifier.
-
#operations ⇒ Object
Returns the value of attribute operations.
-
#package ⇒ Object
Returns the value of attribute package.
-
#type ⇒ Object
Returns the value of attribute type.
Attributes inherited from Classifier
Attributes inherited from TopElement
#comments, #definition, #href, #keyword, #name, #namespace, #stereotype, #visibility, #xmi_id, #xmi_uuid
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Class
constructor
A new instance of Class.
- #methods ⇒ Object
- #relationships ⇒ Object
Methods included from HasMembers
Methods inherited from TopElement
Methods included from HasAttributes
Constructor Details
#initialize(attributes = {}) ⇒ Class
Returns a new instance of Class.
30 31 32 33 34 35 36 |
# File 'lib/lutaml/uml/class.rb', line 30 def initialize(attributes = {}) @nested_classifier = [] @stereotype = [] @generalization = [] @is_abstract = false super end |
Instance Attribute Details
#associations ⇒ Object
Returns the value of attribute associations.
22 23 24 |
# File 'lib/lutaml/uml/class.rb', line 22 def associations @associations end |
#attributes ⇒ Object
Returns the value of attribute attributes.
22 23 24 |
# File 'lib/lutaml/uml/class.rb', line 22 def attributes @attributes end |
#constraints ⇒ Object
Returns the value of attribute constraints.
22 23 24 |
# File 'lib/lutaml/uml/class.rb', line 22 def constraints @constraints end |
#data_types ⇒ Object
Returns the value of attribute data_types.
22 23 24 |
# File 'lib/lutaml/uml/class.rb', line 22 def data_types @data_types end |
#is_abstract ⇒ Object
Returns the value of attribute is_abstract.
17 18 19 |
# File 'lib/lutaml/uml/class.rb', line 17 def is_abstract @is_abstract end |
#members ⇒ Object (readonly)
Returns the value of attribute members.
22 23 24 |
# File 'lib/lutaml/uml/class.rb', line 22 def members @members end |
#modifier ⇒ Object
Returns the value of attribute modifier.
22 23 24 |
# File 'lib/lutaml/uml/class.rb', line 22 def modifier @modifier end |
#nested_classifier ⇒ Object
Returns the value of attribute nested_classifier.
17 18 19 |
# File 'lib/lutaml/uml/class.rb', line 17 def nested_classifier @nested_classifier end |
#operations ⇒ Object
Returns the value of attribute operations.
22 23 24 |
# File 'lib/lutaml/uml/class.rb', line 22 def operations @operations end |
#package ⇒ Object
Returns the value of attribute package.
17 18 19 |
# File 'lib/lutaml/uml/class.rb', line 17 def package @package end |
#type ⇒ Object
Returns the value of attribute type.
17 18 19 |
# File 'lib/lutaml/uml/class.rb', line 17 def type @type end |
Instance Method Details
#methods ⇒ Object
72 73 74 75 |
# File 'lib/lutaml/uml/class.rb', line 72 def methods # @members&.select { |member| member.class == Method } [] end |
#relationships ⇒ Object
77 78 79 80 |
# File 'lib/lutaml/uml/class.rb', line 77 def relationships # @members&.select { |member| member.class == ClassRelationship } [] end |