Ruby auto formatter

Is there a Windows tool that does a reasonable job of globally
formatting an existing Ruby script file so that it complies with the
convention for code indentation?

Jamal

Jamal M. wrote:

Is there a Windows tool that does a reasonable job of globally
formatting an existing Ruby script file so that it complies with the
convention for code indentation?

Jamal

have not tried it but,
http://www.arachnoid.com/ruby/rubyBeautifier.html

DÅ?a Utorok 11. Apríl 2006 18:42 Jamal M. napísal:

Is there a Windows tool that does a reasonable job of globally
formatting an existing Ruby script file so that it complies with the
convention for code indentation?

Jamal

You can get one of the emacsen to load the file and reindent it in batch
mode,
ruby-mode does a pretty god job at that - I know I got someone to give
me the
whole command line a while ago, but lost the message since, try
searching the
forums for it.

David V.

David V. wrote:

DÅ?a Utorok 11. Apríl 2006 18:42 Jamal M. napísal:

Is there a Windows tool that does a reasonable job of globally
formatting an existing Ruby script file so that it complies with the
convention for code indentation?

Jamal

You can get one of the emacsen to load the file and reindent it in batch
mode,
ruby-mode does a pretty god job at that - I know I got someone to give
me the
whole command line a while ago, but lost the message since, try
searching the
forums for it.

Not that you would want to do this with large quantities, but FWIW, I
thought I’d mention:

$ diakonos -e ‘anchorSelection; cursorEOF; parsedIndent; saveFile; quit’
my_file_which_needs_auto_indenting.rb

Pistos

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs