Ruby 4.0 リファレンスマニュアル

module function Gem?.prefix

prefix -> StringRuby 1.9.3 から[permalink][rdoc][edit]

このライブラリがインストールされているディレクトリの親ディレクトリを返します。