examples/testorder.rb in ruby-graphviz-0.9.1 vs examples/testorder.rb in ruby-graphviz-0.9.2

- old
+ new

@@ -3,13 +3,13 @@ $:.unshift( "../lib" ); require "graphviz" g = nil if ARGV[0] - g = GraphViz::new( "G", "output" => "png", "path" => ARGV[0] ) + g = GraphViz::new( "G", "path" => ARGV[0] ) else - g = GraphViz::new( "G", "output" => "png" ) + g = GraphViz::new( "G" ) end g.node["color"] = "black" g.edge["color"] = "black" @@ -38,6 +38,6 @@ g.add_edge( execute, printf ) g.add_edge( init, make_string ) g.add_edge( main, printf, "color" => "red", "style" => "bold", "label" => "100 times" ) g.add_edge( execute, compare, "color" => "red" ) -g.output( :file => "#{$0}.png" ) +g.output( :png => "#{$0}.png" )