From: Dylan Date: 2009-09-02T02:05:12+09:00 Subject: Re: Remove comments from ruby source code? On Sep 1, 4:12 am, Arul hari wrote: > 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