Class: FunctionLeafDrawer
- Inherits:
-
GraphDrawer
- Object
- GraphDrawer
- FunctionLeafDrawer
- Defined in:
- lib/generators/graphviz/function_leaf_drawer.rb
Instance Method Summary collapse
- #draw ⇒ Object
-
#initialize(node, config, factory) ⇒ FunctionLeafDrawer
constructor
A new instance of FunctionLeafDrawer.
Constructor Details
#initialize(node, config, factory) ⇒ FunctionLeafDrawer
Returns a new instance of FunctionLeafDrawer.
4 5 6 |
# File 'lib/generators/graphviz/function_leaf_drawer.rb', line 4 def initialize(node, config, factory) super node, config, factory end |
Instance Method Details
#draw ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/generators/graphviz/function_leaf_drawer.rb', line 8 def draw report_label = draw_report_label report_label = report_label.empty? ? report_label : "\\n#{report_label}" "\"#{@node.path}\" [style=filled, label=\"#{draw_name_label}"\ "#{report_label}\" #{draw_report_color(",")}\];\n" end |