Where can I find a decent Ruby source beautifier? I want something customizable and reliable. I found this but I'm not convinced.
A:
In 1.9.1 you can use the -w option to report whitespace violations. Not really a pretty-printer like cb or tidy, but it will show you the warts.
sal
2009-07-28 17:14:17
+1
A:
You can download netbeans and source format your code with it.
Lichtamberg
2009-07-29 15:25:28
+2
A:
Use Vim or GVim, open ruby source, select everything (key sequence):
gg
Shift+V
G
=
that will autoindent your source. to save and quit, type:
:wq
skrat
2009-10-20 13:30:23
Do it all the time, like this: gg=G
hgimenez
2009-10-20 14:09:22