Class: Gem::Uninstaller

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

An Uninstaller.

### Methods

ask_if_ok new ok_to_remove? 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)
ok_to_remove?(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)

list: | the list of all gems to remove

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

remove_executables(gemspec)

Remove executables and batch files (windows only) for the gem as it is being installed

gemspec::[Specification] the gem whose executables need to be removed.

uninstall()

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

[Validate]