Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
Gem.pre_reset
() { () -> untyped } -> ::Array[::Proc]
pre_reset(&hook)
lib/rubygems.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/rubygems.rb, line 737
def self.pre_reset(&hook)
@pre_reset_hooks << hook
end
Adds a hook that will get run before Gem::Specification.reset is run.
See also
.pre_install
.pre_uninstall
.prefix
.rdoc_hooks_defined_via_plugin?
also in
4.1 · 4.0 · 3.3 · 3.2 · 3.1 · 3.0