On 4 ene, 16:49, Nasir Khan <rubylear... / gmail.com> wrote:
> [Note:  parts of this message were removed to make it a legal post.]
>
> Hi,
>
> Is there an easy way of finding the location of my installed gem
> programmatically.
> I need this to create an environment variable.

C:\Documents and Settings\Usuario>irb
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> Gem.dir
=> "C:/Ruby/lib/ruby/gems/1.8"
irb(main):003:0>


HTH,
--
Luis Lavena