RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Quick hack to visualize nested Ruby arrays with Graphviz

I wanted a hack to visualize programs from my compiler project using Graphviz. The script will turn arbitrary arrays containing other arrays or objects that respond to #to_s and turn it into a tree structure.

Comments

Argh.. Unfortunately, despite the preview I messed up the link. The correct link is http://www.hokstad.com/creating-graphviz-graphs-from-ruby-arrays.html

Link now fixed - forgot you can edit the entries after posting.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in