Class: UML::Graphviz::ClassNode

Inherits:
Node
  • Object
show all
Defined in:
lib/uml/class_diagram_helper.rb

Instance Attribute Summary collapse

Attributes inherited from Node

#attributes, #name

Instance Method Summary collapse

Constructor Details

#initialize(name, title) ⇒ ClassNode

Returns a new instance of ClassNode.



10
11
12
13
14
15
# File 'lib/uml/class_diagram_helper.rb', line 10

def initialize(name, title)
  super(name)
  @title = title
  # key = method_symbol, value = visibility
  @methods = {}
end

Instance Attribute Details

#methodsObject

Returns the value of attribute methods.



8
9
10
# File 'lib/uml/class_diagram_helper.rb', line 8

def methods
  @methods
end

Instance Method Details

#to_dot(indent = 0) ⇒ Object



17
18
19
20
# File 'lib/uml/class_diagram_helper.rb', line 17

def to_dot(indent = 0)
  @attributes[:label] = label
  super
end