Class: UML::SequenceDiagram::ObjectDefinition

Inherits:
Object
  • Object
show all
Defined in:
lib/uml/sequence_diagram.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#activeObject

Returns the value of attribute active.



142
143
144
# File 'lib/uml/sequence_diagram.rb', line 142

def active
  @active
end

#labelObject (readonly)

Returns the value of attribute label.



141
142
143
# File 'lib/uml/sequence_diagram.rb', line 141

def label
  @label
end

#typeObject (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

#nameObject 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