End of Life Ruby 3.0 has reached end of life and gets no more fixes. 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.0.5/lib/rubygems/uninstaller.rb, line 367
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.3 · 3.2 · 3.1