How to find the path a Ruby Gem is installed at (i.e. Gem.lib_path c.f. Gem.bin_path)

前端 未结 4 1978
灰色年华
灰色年华 2020-12-24 01:24
Gem.bin_path(\'cucumber\', \'cucumber\')

Will return the binary/executable\'s path. It seems there is no such function to return the library path.

4条回答
  •  旧时难觅i
    2020-12-24 01:50

    I'm not sure why you're doing this, but if you're on the command line, use gem env.

提交回复
热议问题