![show/hide quicksearch [+]](../images/find.png)
Gem::PathSupport facilitates the GEM_HOME and GEM_PATH environment settings to the rest of RubyGems.
Constructor. Takes a single argument which is to be treated like a hashtable, or defaults to ENV, the system environment.
 
               # File rubygems/path_support.rb, line 25
def initialize(env)
  @home     = env["GEM_HOME"] || Gem.default_dir
  if File::ALT_SEPARATOR then
    @home   = @home.gsub(File::ALT_SEPARATOR, File::SEPARATOR)
  end
  @path = split_gem_path env["GEM_PATH"], @home
  @spec_cache_dir = env["GEM_SPEC_CACHE"] || Gem.default_spec_cache_dir
  @spec_cache_dir = @spec_cache_dir.dup.untaint
end