class method
Gem.data_home
() -> ::String
data_home
lib/rubygems/defaults.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.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 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0