class Gem::Commands::CheckCommand

def doctor

def doctor
  say 'Checking for files from uninstalled gems...'
  say
  Gem.path.each do |gem_repo|
    doctor = Gem::Doctor.new gem_repo, options[:dry_run]
    doctor.doctor
  end
end