Sha256: 35345016305f6f9c4e2bd0b2abed15e52b99c30727157cf6d555557206e7f463

Contents?: true

Size: 272 Bytes

Versions: 6

Compression:

Stored size: 272 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 => "sample.png")

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ruby-graphviz-0.9.7 examples/dot/hello_test.rb
ruby-graphviz-0.9.6 examples/dot/hello_test.rb
ruby-graphviz-0.9.5 examples/dot/hello_test.rb
ruby-graphviz-0.9.4 examples/dot/hello_test.rb
ruby-graphviz-0.9.3 examples/dot/hello_test.rb
ruby-graphviz-0.9.2 examples/dot/hello_test.rb