Skip to content

End of Life Ruby 3.0 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)

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.

See also #doctor #gem_repository? also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1