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

singleton method Gem::SourceIndex.new

new(specifications = {}) -> Gem::SourceIndex

与えられたハッシュを元に自身を初期化します。

[PARAM] specifications:
キーを Gem の名前、値を Gem::Specification のインスタンスとするハッシュを指定します。
class Gem::SourceIndex