Preview Ruby 4.1 is a preview. It can change before the final release. 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-4.1.0-preview1/lib/rubygems/uninstaller.rb, line 390
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
#rm_r
#specification_record
#remove_executables
#uninstall
also in
4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0