Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Gem::Commands::UninstallCommand#execute
execute
lib/rubygems/commands/uninstall_command.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/commands/uninstall_command.rb, line 125
def execute
check_version
# Consider only gem specifications installed at `--install-dir`
Gem::Specification.dirs = options[:install_dir] if options[:install_dir]
if options[:all] && !options[:args].empty?
uninstall_specific
elsif options[:all]
uninstall_all
else
uninstall_specific
end
end
No documentation available