Class | Gem::Uninstaller
In: | lib/rubygems/uninstaller.rb
Parent: | Object

An Uninstaller.

### Methods

ask_if_ok dependencies_ok? new path_ok? remove remove_all remove_executables uninstall

### Included Modules

Gem::UserInteraction

### Public Class methods

new(gem, options = {})

Constructs an Uninstaller instance

gem: | [String] The Gem name to uninstall

### Public Instance methods

ask_if_ok(spec)
dependencies_ok?(spec)
path_ok?(spec)
remove(spec, list)

spec: | the spec of the gem to be uninstalled
list: | the list of all such gems

Warning: this method modifies the `list` parameter. Once it has uninstalled a gem, it is removed from that list.

remove_all(list)

Removes all gems in `list`.

NOTE: removes uninstalled gems from `list`.

remove_executables(gemspec)

Removes installed executables and batch files (windows only) for `gemspec`.

uninstall()

Performs the uninstall of the Gem. This removes the spec, the Gem directory, and the cached .gem file,

[Validate]