Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
class method
Gem::SourceFetchProblem.new
new(source, error)
lib/rubygems/errors.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/errors.rb, line 150
def initialize(source, error)
@source = source
@error = error
end
Creates a new SourceFetchProblem for the given source and error.