method

new

ruby latest stable - Class: Gem::SourceIndex

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1_9_3_392) is shown here.

new(specs_or_dirs = [])
public

Constructs a source index instance from the provided specifications, which is a Hash of gem full names and Gem::Specifications.