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

···

--
Posted via http://www.ruby-forum.com/.

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

···

On Jun 27, 12:40 pm, Frank Church <vfcfor...@gmail.com> 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.

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 6/27/07, Frank Church <vfcforums@gmail.com> 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.

Frank

--
Posted via http://www.ruby-forum.com/\.

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

···

On Jun 27, 2:40 pm, Frank Church <vfcfor...@gmail.com> wrote:

Is there a ruby source code formatter somewhere out there?

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

···

On 6/27/07, Nasir Khan <rubylearner@gmail.com> wrote:

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 6/27/07, Frank Church <vfcforums@gmail.com> 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.
>
> Frank
>
> --
> Posted via http://www.ruby-forum.com/\.
>