Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Gem::Uninstaller#safe_delete
safe_delete(&block)
lib/rubygems/uninstaller.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/rubygems/uninstaller.rb, line 369
def safe_delete(&block)
block.call
rescue Errno::ENOENT
nil
rescue Errno::EPERM
e = Gem::UninstallError.new
e.spec = @spec
raise e
end
No documentation available
See also
#remove_executables
#uninstall
#remove_all
#uninstall_gem
also in
4.1 · 4.0 · 3.4 · 3.2 · 3.1 · 3.0