Class: FunctionLeafDrawer

Inherits:
GraphDrawer show all
Defined in:
lib/generators/graphviz/function_leaf_drawer.rb

Instance Method Summary collapse

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

#drawObject



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