Sha256: b4ba19afe1a63d66d04ff55d3fa20bf60a8fb00ee2d067f65262eee1a408ee5e

Contents?: true

Size: 271 Bytes

Versions: 7

Compression:

Stored size: 271 Bytes

Contents

#!/usr/bin/ruby

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

GraphViz.parse( "hello.dot", :path => "/usr/local/bin" ) { |g|
  g.get_node("Hello") { |n|
    n.label = "Bonjour"
  }
  g.get_node("World") { |n|
    n.label = "Le Monde"
  }
}.output(:png => "#{$0}.png")

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ruby-graphviz-0.9.14 examples/dot/hello_test.rb
ruby-graphviz-0.9.13 examples/dot/hello_test.rb
ruby-graphviz-0.9.12 examples/dot/hello_test.rb
ruby-graphviz-0.9.11 examples/dot/hello_test.rb
ruby-graphviz-0.9.10 examples/dot/hello_test.rb
ruby-graphviz-0.9.9 examples/dot/hello_test.rb
ruby-graphviz-0.9.8 examples/dot/hello_test.rb