Ruby AST Visualizer
Ruby AST Visualizer. Based on Parser.
USAGE
An example ruby_ast_visualizer command.
$ ruby_ast_visualizer 'puts "hello"'
Following image file is generated.

A little more in detail
You can specify output path in the -o option. That value is default a.png.
$ ruby_ast_visualizer -o path/to/file 'puts "hello"'
REQUIREMENTS
- Graphviz
INSTALL
Add these lines to your application's Gemfile:
gem 'ruby_ast_visualizer'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ruby_ast_visualizer
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request
License
Ruby AST Visualizer is released under the GNU General Public License, version 2.