Skip to content
On this page

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

class · Ruby 4.1

Gem::Uninstaller

< Object include Gem::InstallerUninstallerUtils include Gem::UserInteraction 15 instance methods 1 class methods

An Uninstaller.

The uninstaller fires pre and post uninstall hooks. Hooks can be added either through a rubygems_plugin.rb file in an installed gem or via a rubygems/defaults/#{RUBY_ENGINE}.rb or rubygems/defaults/operating_system.rb file. See Gem.pre_uninstall and Gem.post_uninstall for details.

Class methods 1

Instance methods 15

Attributes
Read

The directory a gem’s executables will be installed into

Read

The gem repository the gem will be uninstalled from

Read

The Gem::Specification for the gem being uninstalled, only set during uninstall_gem