examples/sample45.rb in ruby-graphviz-1.0.2 vs examples/sample45.rb in ruby-graphviz-1.0.3
- old
+ new
@@ -16,9 +16,9 @@
"egg", "triangle", "plaintext", "diamond", "trapezium",
"parallelogram", "house", "pentagon", "hexagon", "septagon", "octagon", "doublecircle",
"doubleoctagon", "tripleoctagon", "invtriangle", "invtrapezium", "invhouse",
"Mdiamond", "Msquare", "Mcircle", "rect", "rectangle", "none", "note", "tab", "folder",
"box3d", "component" ].each { |s|
- g.add_node( s, "shape" => s )
+ g.add_nodes( s, "shape" => s )
}
g.output( :png => "#{$0}.png")