Q:

Cleaning up tabs, spacing, etc on a Ruby script

I have a series of scripts that have a mixture of all kinds of spacing, tabs, or a complete lack thereof.   Is there anything that can parse and clean .rb files in a similar manner to HTML Tidy? 

A:

You can try the Ruby Script Beautifier. 

A:

Open in Vim
gg=G

