~ubuntu-branches/ubuntu/raring/ruby-graphviz/raring

« back to all changes in this revision

Viewing changes to examples/sample24.rb

  • Committer: Package Import Robot
  • Author(s): Praveen Arimbrathodiyil
  • Date: 2012-10-26 18:38:19 UTC
  • Revision ID: package-import@ubuntu.com-20121026183819-h0d3mvlu6mjasgub
Tags: upstream-1.0.8
ImportĀ upstreamĀ versionĀ 1.0.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/ruby
 
2
 
 
3
$:.unshift( "../lib" );
 
4
require "graphviz"
 
5
 
 
6
GraphViz::new( "G" ) { |g|
 
7
  g.hello << g.world
 
8
  g.bonjour - g.monde
 
9
  g.hola > g.mundo
 
10
  g.holla >> g.welt
 
11
}.output( :path => "/usr/local/bin", :png => "#{$0}.png" )