class method
Gem::Doctor.new
new(gem_repository, dry_run = false)
lib/rubygems/doctor.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/rubygems/doctor.rb, line 45
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.