Class: Mscgen::Entity
- Inherits:
-
Object
- Object
- Mscgen::Entity
- Defined in:
- lib/mscgen/entity.rb
Overview
sequence entity object
Constant Summary collapse
- @@entity_count =
0
Instance Attribute Summary collapse
-
#label ⇒ Object
entity label.
Instance Method Summary collapse
-
#initialize(label) ⇒ Entity
constructor
A new instance of Entity.
-
#name ⇒ Object
return entity name.
-
#to_msc ⇒ Object
retrun mscgen format text.
Constructor Details
Instance Attribute Details
#label ⇒ Object
entity label
7 8 9 |
# File 'lib/mscgen/entity.rb', line 7 def label @label end |
Instance Method Details
#name ⇒ Object
return entity name
16 17 18 |
# File 'lib/mscgen/entity.rb', line 16 def name "ent_#{@eid}" end |
#to_msc ⇒ Object
retrun mscgen format text
21 22 23 |
# File 'lib/mscgen/entity.rb', line 21 def to_msc "#{name}[label=\"#{@label}\"]" end |