/usr/share/doc/ruby-graphviz/examples/sample21.rb is in ruby-graphviz 1.2.3-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 | #!/usr/bin/ruby
$:.unshift( "../lib" );
require "graphviz"
{"png" => "#{$0}.png", "imap" => "#{$0}.html"}.each do |format, file|
GraphViz::new( "G" ) { |g|
g.command(:URL => "http://www.research.att.com/base.html")
g._output(:label => "output", :URL => "colors.html")
g.command << g._output
}.output( format => file )
end
|