Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
Gem.cache_home
() -> ::String
cache_home
lib/rubygems/defaults.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/rubygems/defaults.rb, line 147
def self.cache_home
@cache_home ||= ENV["XDG_CACHE_HOME"] || File.join(Gem.user_home, ".cache")
end
The path to standard location of the user’s cache directory.
See also
.bin_path
.clear_default_specs
.bindir
.clear_paths
also in
4.1 · 4.0 · 3.3 · 3.2 · 3.1 · 3.0