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 is png πŸ–ΌοΈ
  • -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 πŸ’…πŸŒΈ