examples/sample16.rb in ruby-graphviz-0.9.1 vs examples/sample16.rb in ruby-graphviz-0.9.2
- old
+ new
@@ -1,8 +1,8 @@
#!/usr/bin/ruby
$:.unshift( "../lib" );
require "graphviz"
-GraphViz::new( "G", :type => "graph", :output => "png", :rankdir => "LR" ) { |graph|
+GraphViz::new( "G", :type => "graph", :rankdir => "LR" ) { |graph|
graph.add_edge( [graph.a, graph.b, graph.c], [ graph.d, graph.e, graph.f ] )
-}.output( :path => '/usr/local/bin/', :file => "#{$0}.png" )
+}.output( :path => '/usr/local/bin/', :png => "#{$0}.png" )
\ No newline at end of file