Gem.bin_path(\'cucumber\', \'cucumber\')
Will return the binary/executable\'s path. It seems there is no such function to return the library path.
I'm not sure why you're doing this, but if you're on the command line, use gem env.
gem env