Method: UCD::Formatter::Graphviz#format_class_relationship

Defined in:
lib/ucd/formatter/graphviz.rb

#format_class_relationship(node) ⇒ Object



104
105
106
107
108
109
110
111
112
113
114
# File 'lib/ucd/formatter/graphviz.rb', line 104

def format_class_relationship(node)
  attributes = Attributes.new

  attributes["arrowhead"] = "onormal"
  attributes["style"] = "dashed" if node.type == "realizes"

  graph_parent_name = generate_graph_name(node.parent.name)
  graph_node_name = generate_graph_name(node.name)

  %Q{Class#{graph_parent_name} -> Class#{graph_node_name} [#{attributes}]}
end