On Sep 1, 4:12 ¨Βν¬ Αςυμ θαςι Όθαςιθαςαξ®®®®ΐςεδιζζναιμ®γονΎ χςοτεΊ
> Dear Friends,
> If there any pre-defined function or ruby options available
> for removing the ruby comments from the source code. Please any on help
> me if you already aware of this.
>
> Regards,
> S.Vellingiri.
> --
> Posted viahttp://www.ruby-forum.com/.

You should be able to use something like this to get rid of normal
comments ("#"):

http://pastie.org/601862

then you could call it like this:

remcom("filename.rb")

-Dylan