Module: Muml_Generalization

Defined in:
lib/ontomde-uml2/uml2.rb,
lib/ontomde-uml2/dotDiagram.rb

Instance Method Summary collapse

Instance Method Details

#to_sObject

Internal use

Used by web server



144
145
146
# File 'lib/ontomde-uml2/uml2.rb', line 144

def to_s
  return "->#{uml_general.to_s}"
end

#umlx_classDiagram_dotFragmentObject

Generate dot graphical instruction for this element.



99
100
101
102
103
104
# File 'lib/ontomde-uml2/dotDiagram.rb', line 99

def umlx_classDiagram_dotFragment
  c=uml_general_one
  o=uml_specific_one
  write(%{#{c.dotId} [label="#{c.uml_name}"]\n})
  write(%{#{c.dotId}->#{o.dotId} [arrowhead=none,arrowtail=onormal,minlen=2]\n})
end