Skip to content

Latest commit

 

History

History
28 lines (16 loc) · 739 Bytes

README.md

File metadata and controls

28 lines (16 loc) · 739 Bytes

rb-beautify - Ruby Beautifier

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.

Installation

Download files

Usage

$ ruby */rb-beautify.rb *.rb
or if you want stdin
$ ruby */rb-beautify.rb -

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request