From: Kuba Podgorski Date: 2007-07-11T00:07:01+09:00 Subject: Re: Getting Gem Version from Within a Gem Frew Schmidt wrote: > Kuba wrote: >> On 7/10/07, Frew Schmidt wrote: >>> Does anyone know if there is a way that I can have my program output >>> what version it is and get the version from the Gem that it is installed >>> from? >> >> Using 'gem' , you can execute sth. like: >> >> gem list --local | grep >> >> but i'm not sure, is it what you expect. >> >> Best Regards, Kuba. > > So there's not a variable inside the program that I can access that > contains the Gem info? I think, it depends on your gems' library/program. There is no general variable (fix me if i'm wrong). E.g.: In module 'Inline' is defined const. VERSION, so you can print Inline::VERSION, but 'rake' defined const. RAKEVERSION -- Posted via http://www.ruby-forum.com/.