Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v1_9_3_392) is shown here.
cache_gem(filename, user_dir=false)
public
Given a gem path, find the gem in cache.
Pass a string as the second argument to use a different base path, or
nil/false (default) for Gem.dir.
# File lib/rubygems.rb, line 731
def self.cache_gem(filename, user_dir=false)
cache_dir(user_dir).add(filename)
end