Class: Lutaml::Sysml::Block
- Inherits:
-
Uml::Class
- Object
- Model::Serializable
- Uml::TopElement
- Uml::Classifier
- Uml::Class
- Lutaml::Sysml::Block
- Defined in:
- lib/lutaml/sysml/block.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#base_class ⇒ Object
Returns the value of attribute base_class.
Instance Method Summary collapse
- #full_name ⇒ Object
-
#initialize ⇒ Block
constructor
rubocop:disable Lint/MissingSuper.
- #name ⇒ Object
Methods inherited from Uml::Class
#associations_from_yaml, #associations_to_yaml
Methods inherited from Uml::TopElement
#definition_from_yaml, #definition_to_yaml, #full_name_from_yaml, #full_name_to_yaml
Constructor Details
#initialize ⇒ Block
rubocop:disable Lint/MissingSuper
8 9 10 11 12 13 |
# File 'lib/lutaml/sysml/block.rb', line 8 def initialize # rubocop:disable Lint/MissingSuper @xmi_id = nil @nested_classifier = [] @stereotype = [] @namespace = nil end |
Instance Attribute Details
#base_class ⇒ Object
Returns the value of attribute base_class.
6 7 8 |
# File 'lib/lutaml/sysml/block.rb', line 6 def base_class @base_class end |
Instance Method Details
#full_name ⇒ Object
23 24 25 26 27 28 29 |
# File 'lib/lutaml/sysml/block.rb', line 23 def full_name if !base_class.nil? && !base_class.name.nil? return base_class.full_name end nil end |
#name ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/lutaml/sysml/block.rb', line 15 def name if !base_class.nil? && !base_class.name.nil? return base_class.name end nil end |