DOT2RUBY(1)
β¨ DOT2RUBY β¨ (that's section 1 of the manual, bestie π )
okay so you found the dot2ruby page, congrats, you're in the right place π
π NAME π
dot2ruby β it makes a ruby script out of a graphviz script. that's it. that's the whole gig. no cap.
π¦ SYNOPSIS π¦
dot2ruby [-ofile] [-Tformat] [-h] [-V] script
πΈ DESCRIPTION πΈ
so like, dot2ruby is a tool that lets you create a ruby script from a graphviz script. it's giving translator, it's giving glow-up, it's giving "I don't wanna hand-write this ruby" energy π«Ά
wanna know more? go peek at /usr/share/doc/ruby-graphviz/ β that's where the extra lore lives β¨
π OPTIONS π
-o,--output-file [file]β path to the output image file. default? STDOUT, so it just yells it at your terminal if you don't say otherwise π’-T,--output-format [format]β what format you want the output in. default ispngπΌοΈ-p,--pathβ the Graphviz path, iykyk π₯-V,--versionβ show version. iconic, show me the numbers π-h,--helpβ show this usage message. the classic. the blueprint. the girl who tells you what's up π
π EXAMPLE π
okay bestie, watch this transformation, it's literally magic:
$ cat hello.dot
digraph G {Hello->World;}
and then π¦
$ dot2ruby hello.dot
# This code was generated by dot2ruby.g
require Β΄rubygemsΒ΄
require Β΄graphvizΒ΄
graph_g = GraphViz.digraph( "G" ) { |graph_g|
graph_g[:bb] = Β΄0,0,70,108Β΄
node_hello = graph_g.add_nodes( "Hello", :height => Β΄0.5Β΄, :label => Β΄\NΒ΄, :pos => Β΄35,90Β΄, :width => Β΄0.88889Β΄ )
graph_g.add_edges( "Hello", "World", :pos => Β΄e,35,36.413 35,71.831 35,64.131 35,54.974 35,46.417Β΄ )
node_world = graph_g.add_nodes( "World", :height => Β΄0.5Β΄, :label => Β΄\NΒ΄, :pos => Β΄35,18Β΄, :width => Β΄0.97222Β΄ )
}
puts graph_g.output( :canon => String )
ate. no crumbs. πβ¨
π AUTHOR π
Copyright 2004-2013 Gregoire Lejeune π
This manual page is written by Praveen Arimbrathodiyl praveen@debian.org for Debian GNU System (GNU/Linux, GNU/kFreeBSD, GNU/Hurd). π«Ά
fr fr, that's the whole page. go make some graphs, main character π
that was DOT2RUBY(1), dated April 2013 β mwah, xoxo, go forth and graph π πΈ
π¦ where this page comes from
- debian bookworm: ruby-graphviz 1.2.5-3 Β· GPL-2.0-or-later
- debian trixie: ruby-graphviz 1.2.5-3 Β· GPL-2.0-or-later
- nixos 26.05: ruby3.3-ruby-graphviz 1.2.5
- nixos 26.05: ruby3.4-ruby-graphviz 1.2.5
- nixos 26.05: ruby4.0-ruby-graphviz 1.2.5
- nixpkgs unstable: ruby3.4-ruby-graphviz 1.2.5
- nixpkgs unstable: ruby4.0-ruby-graphviz 1.2.5
- ubuntu jammy: ruby-graphviz 1.2.5-2ubuntu1 Β· GPL-2.0-or-later
- ubuntu noble: ruby-graphviz 1.2.5-2ubuntu1 Β· GPL-2.0-or-later
- ubuntu questing: ruby-graphviz 1.2.5-3
- ubuntu resolute: ruby-graphviz 1.2.5-3.1 Β· GPL-2.0-or-later
- ubuntu stonking: ruby-graphviz 1.2.5-3.1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms