class method
Gem.default_dir
() -> ::String
default_dir
lib/rubygems/defaults.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/rubygems/defaults.rb, line 37
def self.default_dir
@default_dir ||= File.join(RbConfig::CONFIG["rubylibprefix"], "gems", RbConfig::CONFIG["ruby_version"])
end
Default home directory path to be used if an alternate value is not specified in the environment
See also
.default_cert_path
.default_exec_format
.default_bindir
.default_ext_dir_for
also in
4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0