cache_dir(custom_dir=false)
public
Get the appropriate cache path.
Pass a string to use a different base path, or nil/false (default) for
Gem.dir.
# File lib/rubygems.rb, line 721
def self.cache_dir(custom_dir=false)
File.join(custom_dir || Gem.dir, "cache")
end