End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
Gem::Doctor.new
new(gem_repository, dry_run = false)
lib/rubygems/doctor.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/rubygems/doctor.rb, line 44
def initialize(gem_repository, dry_run = false)
@gem_repository = gem_repository
@dry_run = dry_run
@installed_specs = nil
end
Creates a new Gem::Doctor that will clean up gem_repository. Only one gem repository may be cleaned at a time.
If dry_run is true no files or directories will be removed.