Sha256: c73c854cbba9bd14c95fd53a40dc1d29b52a1aed1dd129f787ae11361bbe42cf
Contents?: true
Size: 377 Bytes
Versions: 4
Compression:
Stored size: 377 Bytes
Contents
#!/usr/bin/ruby $:.unshift( "../lib" ); require "graphviz" GraphViz.new(:g){ |g| g[:center] = true a = g.add_node("A", :shape => "sdl_procedure_start", :peripheries => 0 ) b = g.add_node("B", :shape => "sdl_save", :peripheries => 0) c = g.add_node("n", :shape => "box", :label => "\\G::\\N\\r") a << b << c }.save( :ps => "#{$0}.ps", :extlib => "sdlshapes/sdl.ps" )
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ruby-graphviz-0.9.11 | examples/sample30.rb |
ruby-graphviz-0.9.10 | examples/sample30.rb |
ruby-graphviz-0.9.9 | examples/sample30.rb |
ruby-graphviz-0.9.8 | examples/sample30.rb |