Sha256: 580381041844c0ab7fb6efa2cc015652217ceac96a68a6d6b6f54b05ba8a6727
Contents?: true
Size: 581 Bytes
Versions: 2
Compression:
Stored size: 581 Bytes
Contents
#!/usr/bin/ruby $:.unshift( "../lib" ); require "graphviz" g = nil if ARGV[0] g = GraphViz::new( "G", "output" => "png", "path" => ARGV[0] ) else g = GraphViz::new( "G", "output" => "png" ) end g.node["shape"] = "ellipse" [ "box", "polygon", "ellipse", "circle", "point", "egg", "triangle", "plaintext", "diamond", "trapezium", "parallelogram", "house", "hexagon", "octagon", "doublecircle", "doubleoctagon", "tripleoctagon", "invtriangle", "invtrapezium", "invhouse", "Mdiamond", "Msquare", "Mcircle" ].each { |s| g.add_node( s, "shape" => s ) } g.output()
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruby-graphviz-0.8.1 | examples/shapes.rb |
ruby-graphviz-0.8.3 | examples/shapes.rb |