examples/shapes.rb in ruby-graphviz-0.8.3 vs examples/shapes.rb in ruby-graphviz-0.9.0
- old
+ new
@@ -12,12 +12,13 @@
g.node["shape"] = "ellipse"
[ "box", "polygon", "ellipse", "circle", "point",
"egg", "triangle", "plaintext", "diamond", "trapezium",
- "parallelogram", "house", "hexagon", "octagon", "doublecircle",
+ "parallelogram", "house", "pentagon", "hexagon", "septagon", "octagon", "doublecircle",
"doubleoctagon", "tripleoctagon", "invtriangle", "invtrapezium", "invhouse",
- "Mdiamond", "Msquare", "Mcircle" ].each { |s|
+ "Mdiamond", "Msquare", "Mcircle", "rect", "rectangle", "none", "note", "tab", "folder",
+ "box3d", "component" ].each { |s|
g.add_node( s, "shape" => s )
}
-g.output()
+g.output( :file => "shapes.png")