Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
Gem.data_home
data_home
lib/rubygems/defaults.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/rubygems/defaults.rb, line 154
def self.data_home
@data_home ||= (ENV["XDG_DATA_HOME"] || File.join(Gem.user_home, ".local", "share"))
end
The path to standard location of the user’s data directory.
See also
.configuration=
.default_bindir
.configuration
.default_cert_path
also in
4.1 · 4.0 · 3.4 · 3.2 · 3.1 · 3.0