Is there a ruby source code formatter?

Is there a ruby source code formatter somewhere out there?

My ruby code is looking pretty terrible as I chop and change here and
there to get the code to work right.

Something that can take a ruby file and output another file will be
great.

Frank

On Jun 27, 12:40 pm, Frank C. [email protected] wrote:

Is there a ruby source code formatter somewhere out there?

My ruby code is looking pretty terrible as I chop and change here and
there to get the code to work right.

Something that can take a ruby file and output another file will be
great.

You can find some answers to this in the first handful of links at:
http://www.google.com/search?q=ruby+source+code+formatter

I dont believe there is one out there, at least my google search drew a
naught.

I also want a ruby code formatter, though for a different reason as I do
a
lot of automatic code generation and it will be nice to run the code
through
a formatter to make it human friendly.

If non extsts then I am thinking of doing one myself and make it
available
to others.

  • Nasir

On Jun 27, 2:40 pm, Frank C. [email protected] wrote:

Is there a ruby source code formatter somewhere out there?

I’ve been using http://www.arachnoid.com/ruby/rubyBeautifier.html

Its a Ruby script, so you can make adjustments if the default isn’t to
your liking
Also easy to add as a tool to the various editors/IDEs I’ve been
playing with

Cheers
Chris

http://rubyforge.org/projects/tiddy/ looks nice though not actively
maintained.

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