Class: UML::SequenceDiagram::ObjectDefinition
- Inherits:
-
Object
- Object
- UML::SequenceDiagram::ObjectDefinition
- Defined in:
- lib/uml/sequence_diagram.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#active ⇒ Object
Returns the value of attribute active.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(label, type = :object) ⇒ ObjectDefinition
constructor
A new instance of ObjectDefinition.
-
#name ⇒ Object
(also: #to_s)
does nothing more, than ensure that label can be used as name for pic.
Constructor Details
#initialize(label, type = :object) ⇒ ObjectDefinition
144 145 146 147 148 |
# File 'lib/uml/sequence_diagram.rb', line 144 def initialize(label, type = :object) @label = label @type = type @active = 0 end |
Instance Attribute Details
#active ⇒ Object
Returns the value of attribute active.
142 143 144 |
# File 'lib/uml/sequence_diagram.rb', line 142 def active @active end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
141 142 143 |
# File 'lib/uml/sequence_diagram.rb', line 141 def label @label end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
141 142 143 |
# File 'lib/uml/sequence_diagram.rb', line 141 def type @type end |
Instance Method Details
#name ⇒ Object Also known as: to_s
does nothing more, than ensure that label can be used as name for pic
151 152 153 |
# File 'lib/uml/sequence_diagram.rb', line 151 def name @label.gsub(/::/, '_') end |