Ruby 1.9.3 リファレンスマニュアル > ライブラリ一覧 > rubygems/gem_path_searcherライブラリ > Gem::GemPathSearcherクラス > lib_dirs_for

instance method Gem::GemPathSearcher#lib_dirs_for

lib_dirs_for(spec) -> String

ライブラリの格納されているディレクトリを glob に使える形式で返します。

例:

'/usr/local/lib/ruby/gems/1.8/gems/foobar-1.0/{lib,ext}'
class Gem::GemPathSearcher