rbfmt
rbfmt
, like gofmt
in the Go programming language, formats Ruby code.
It parses Ruby source into s-expressions and emits formatted code.
rbfmt
is in beta. Use it at your own risk.
Installation
Add this line to your application's Gemfile:
gem 'rbfmt'
And then execute:
$ bundle
Or install it yourself as:
$ gem install rbfmt
Usage
$ rbfmt # format all children folders recursively
$ rbfmt FOLDER # format FOLDER recursively
Contributing
- Fork it ( http://github.com/jingweno/rbfmt/fork )
- 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