Sha256: d6ab0f508412c5cc05c9a88bd8070b8009b25879ea486475f1055a26016ab8de

Contents?: true

Size: 355 Bytes

Versions: 1

Compression:

Stored size: 355 Bytes

Contents

#!/usr/bin/ruby

$:.unshift( "../lib" );
require "graphviz"

puts GraphViz.new(:G){ |g|
  g[:ratio => "auto", :label => "I love the world!"]
  
	g.hello( :label => "Hello", :color => "blue" ) # You can do this
	g.none[ :label => "World", :color => "green" ] # or that
	(g.hello - g.none)[:style => :bold, :label => " I say"]
}.save( :png => "#{$0}.png" )

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby-graphviz-0.9.8 examples/sample28.rb