examples/HTML-Labels.rb in ruby-graphviz-0.8.3 vs examples/HTML-Labels.rb in ruby-graphviz-0.9.0

- old
+ new

@@ -1,9 +1,9 @@ $:.unshift( "../lib" ); require "graphviz" -g = GraphViz::new( "structs", "output" => "png", :path => ARGV[0] ) +g = GraphViz::new( "structs", :output => "png" ) g.node["shape"] = "plaintext" g.add_node( "HTML" ) @@ -15,6 +15,6 @@ g.add_edge( "struct1:f1", "struct2:f0" ) g.add_edge( "struct1:f2", "struct3:here" ) g.add_edge( "HTML", "struct1" ) -g.output( "file" => "HTML-Labels.png" ) +g.output( :path => '/usr/local/bin/', :file => "#{$0}.png" )