Class: UML::Graphviz::ClassNode
- Defined in:
- lib/uml/class_diagram_helper.rb
Instance Attribute Summary collapse
-
#methods ⇒ Object
Returns the value of attribute methods.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(name, title) ⇒ ClassNode
constructor
A new instance of ClassNode.
- #to_dot(indent = 0) ⇒ Object
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
#methods ⇒ Object
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 |