class
Importance_1
Ruby latest stable (v2_5_5) - 0 notes - Superclass: Object

The SourceList represents the sources rubygems has been configured to use. A source may be created from an array of sources:

Gem::SourceList.from %w[https://rubygems.example https://internal.example]

Or by adding them:

sources = Gem::SourceList.new
sources << 'https://rubygems.example'

The most common way to get a SourceList is Gem.sources.

Show files where this class is defined (1 file)
Register or log in to add new notes.