examples/sample04.rb in ruby-graphviz-0.9.0 vs examples/sample04.rb in ruby-graphviz-0.9.1
- old
+ new
@@ -3,13 +3,13 @@
$:.unshift( "../lib" );
require "graphviz"
g = nil
if ARGV[0]
- g = GraphViz::new( "structs", "output" => "png", "path" => ARGV[0] )
+ g = GraphViz::new( "structs", "path" => ARGV[0] )
else
- g = GraphViz::new( "structs", "output" => "png" )
+ g = GraphViz::new( "structs" )
end
g.node["shape"] = "record"
struct1 = g.add_node( "struct1", "shape" => "record", "label" => "<f0> left|<f1> mid\ dle|<f2> right" )
@@ -17,6 +17,6 @@
struct3 = g.add_node( "struct3", "shape" => "record", "label" => 'hello\nworld |{ b |{c|<here> d|e}| f}| g | h' )
g.add_edge( struct1, struct2 )
g.add_edge( struct1, struct3 )
-g.output( :file => "#{$0}.png" )
+g.output( :png => "#{$0}.png" )