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
67 68 69 |
# File 'lib/xumlidot/diagram/xmi/id.rb', line 67 def association_end_id @association_end_id ||= "#{new_id[0..5]}.#{new_id[0..5]}".upcase end |
#association_id ⇒ Object
63 64 65 |
# File 'lib/xumlidot/diagram/xmi/id.rb', line 63 def association_id @association_id ||= "#{new_id[0..5]}.#{new_id[0..5]}".upcase end |
#force_id(id) ⇒ Object
55 56 57 |
# File 'lib/xumlidot/diagram/xmi/id.rb', line 55 def force_id(id) @_id = id end |
#gen_id ⇒ Object
59 60 61 |
# File 'lib/xumlidot/diagram/xmi/id.rb', line 59 def gen_id @gen_id ||= "#{new_id[0..5]}.#{new_id[0..5]}".upcase end |
#id ⇒ Object
51 52 53 |
# File 'lib/xumlidot/diagram/xmi/id.rb', line 51 def id @_id ||= new_id end |