class method
Gem.sources=
(::Gem::SourceList? new_sources) -> ::Gem::SourceList?
sources=(new_sources)
lib/rubygems.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/rubygems.rb, line 988
def self.sources=(new_sources)
if !new_sources
@sources = nil
else
@sources = Gem::SourceList.from(new_sources)
end
end
Need to be able to set the sources without calling Gem.sources.replace since that would cause an infinite loop.
DOC: This comment is not documentation about the method itself, it’s more of a code comment about the implementation.
See also
.sources
.spec_cache_dir
.source_date_epoch_string
.state_file
also in
4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0