class method
Gem::SourceList.from
from(ary)
lib/rubygems/source_list.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/rubygems/source_list.rb, line 34
def self.from(ary)
list = new
list.replace ary
list
end
Creates a new SourceList from an array of sources.