End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
Gem.config_home
config_home
lib/rubygems/defaults.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/rubygems/defaults.rb, line 113
def self.config_home
@config_home ||= (ENV["XDG_CONFIG_HOME"] || File.join(Gem.user_home, ".config"))
end
The path to standard location of the user’s configuration directory.
See also
.config_file
.configuration
.clear_paths
.configuration=
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0