amahi / rb-beautify

Ruby Beautifier

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Ruby Beautifier

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Ruby 100.0%