Source code formatter for Ruby?

Does anyone know of a source code formatter for Ruby?
I can’t see anything on RAA.

Peter

Hi Peter,

I don’t know about any free-standing tools. But there
is support for Ruby source formatting available for
most major editors, like Emacs, Vim, the Eclipse IDE,
etc.

/Anders

···

— “Booth, Peter” Peter.Booth@gs.com wrote:

Does anyone know of a source code formatter for
Ruby?
I can’t see anything on RAA.

=====


Anders Bengtsson ndrsbngtssn@yahoo.se
Stockholm, Sweden


Gratis e-mail resten av livet på www.yahoo.se/mail
Busenkelt!

Anders Bengtsson wrote:

Does anyone know of a source code formatter for
Ruby?
I can’t see anything on RAA.

Hi Peter,

I don’t know about any free-standing tools. But there
is support for Ruby source formatting available for
most major editors, like Emacs, Vim, the Eclipse IDE,
etc.

As for free-standing tools, I’ve used rb2html previously. It isn’t as
heavy on the cosmetics as editors tend to be, but then too much make-up
gives allergic reactions :slight_smile:

http://www.ruby-lang.org/raa/list.rhtml?name=rb2html

···

— “Booth, Peter” Peter.Booth@gs.com wrote:


([ Kent Dahl ]/)_ ~ [ http://www.stud.ntnu.no/~kentda/ ]/~
))_student
/(( _d L b_/ NTNU - graduate engineering - 5. year )
( __õ|õ// ) )Industrial economics and technological management(
_
/ö____/ (_engineering.discipline=Computer::Technology)

I’m soon to play with this, but want to call it programmatically,
whereas it’s designed exclusively for command-line use, I think. It
won’t be much effort to tinker, but I’m wondering if you have done
this already?

Cheers,
Gavin

···

On Sunday, January 12, 2003, 7:51:15 AM, Kent wrote:

Does anyone know of a source code formatter for
Ruby?

As for free-standing tools, I’ve used rb2html previously. It isn’t as
heavy on the cosmetics as editors tend to be, but then too much make-up
gives allergic reactions :slight_smile:

http://www.ruby-lang.org/raa/list.rhtml?name=rb2html

Gavin Sinclair wrote:

http://www.ruby-lang.org/raa/list.rhtml?name=rb2html

I’m soon to play with this, but want to call it programmatically,
whereas it’s designed exclusively for command-line use, I think. It
won’t be much effort to tinker, but I’m wondering if you have done
this already?

I tinkered somewhat with it, but mostly for cosmetic reasons. I needed
syntax coloured examples in the HTML generated by LinuxDoc, so I used a
Makefile which called it on the command-line, made temp files and did
lots of automated cut-and-pasting. I didn’t look into what was needed to
call it programmatically.

···

On Sunday, January 12, 2003, 7:51:15 AM, Kent wrote:


([ Kent Dahl ]/)_ ~ [ http://www.stud.ntnu.no/~kentda/ ]/~
))_student
/(( _d L b_/ NTNU - graduate engineering - 5. year )
( __õ|õ// ) )Industrial economics and technological management(
_
/ö____/ (_engineering.discipline=Computer::Technology)