Module: Xumlidot::Diagram::Xmi::ID
- Included in:
- Argument, Attribute, Klass, MethodSignature, Superklass
- Defined in:
- lib/xumlidot/diagram/xmi/id.rb
Overview
Helper - everything needs an id and these ids need to be used in the Element section
Instance Method Summary collapse
- #association_end_id ⇒ Object
- #association_id ⇒ Object
- #force_id(id) ⇒ Object
- #gen_id ⇒ Object
- #id ⇒ Object
Instance Method Details
#association_end_id ⇒ Object
27 28 29 |
# File 'lib/xumlidot/diagram/xmi/id.rb', line 27 def association_end_id @association_end_id ||= "#{new_id[0..5]}.#{new_id[0..5]}".upcase end |
#association_id ⇒ Object
23 24 25 |
# File 'lib/xumlidot/diagram/xmi/id.rb', line 23 def association_id @association_id ||= "#{new_id[0..5]}.#{new_id[0..5]}".upcase end |
#force_id(id) ⇒ Object
15 16 17 |
# File 'lib/xumlidot/diagram/xmi/id.rb', line 15 def force_id(id) @_id = id end |
#gen_id ⇒ Object
19 20 21 |
# File 'lib/xumlidot/diagram/xmi/id.rb', line 19 def gen_id @gen_id ||= "#{new_id[0..5]}.#{new_id[0..5]}".upcase end |
#id ⇒ Object
11 12 13 |
# File 'lib/xumlidot/diagram/xmi/id.rb', line 11 def id @_id ||= new_id end |