class
Importance_1
v2_6_3 - Show latest stable - 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.