End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::Commands::UninstallCommand#uninstall_all
uninstall_all
lib/rubygems/commands/uninstall_command.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/rubygems/commands/uninstall_command.rb, line 137
def uninstall_all
specs = Gem::Specification.reject {|spec| spec.default_gem? }
specs.each do |spec|
options[:version] = spec.version
uninstall_gem spec.name
end
alert "Uninstalled all gems in #{options[:install_dir] || Gem.dir}"
end
No documentation available
See also
#uninstall
#uninstall_gem
#execute
#uninstall_specific
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0