Trying to keep this old guy (from way back) up to date.
It will format ruby files to make them look good indentation wise and etc. It's kind of like go format, but for ruby (though it does not parse the program in).
If you find some code that this beautifier cannot handle, please send it our way by way of a bug or better yet a pull request.
Download files
$ ruby */rb-beautify.rb *.rb
or if you want stdin
$ ruby */rb-beautify.rb -
- 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