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

module function Gem.#prefix

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

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