Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Gem::Specification#invalidate_memoized_attributes
invalidate_memoized_attributes
lib/rubygems/specification.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/rubygems/specification.rb, line 2119
def invalidate_memoized_attributes
@full_name = nil
@cache_file = nil
end
Expire memoized instance variables that can incorrectly generate, replace or miss files due changes in certain attributes used to compute them.
See also
#initialize_copy
#keep_only_files_and_directories
#has_conflicts?
#lib_files
also in
3.4 · 3.2 · 3.1 · 3.0