Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
Gem::PathSupport.new
new(env)
lib/rubygems/path_support.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/rubygems/path_support.rb, line 26
def initialize(env)
@home = normalize_home_dir(env["GEM_HOME"] || Gem.default_dir)
@path = split_gem_path env["GEM_PATH"], @home
@spec_cache_dir = env["GEM_SPEC_CACHE"] || Gem.default_spec_cache_dir
end
Constructor. Takes a single argument which is to be treated like a hashtable, or defaults to ENV, the system environment.