End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::SourceList#<<
<<(obj)
lib/rubygems/source_list.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/rubygems/source_list.rb, line 50
def <<(obj)
src = case obj
when Gem::Source
obj
else
Gem::Source.new(obj)
end
@sources << src unless @sources.include?(src)
src
end
Appends obj to the source list which may be a Gem::Source, URI or URI String.