method
cache_update_path
v2_1_10 -
Show latest stable
- Class:
Gem::FakeFetcher
cache_update_path(uri, path = nil, update = true)public
No documentation available.
# File lib/rubygems/test_utilities.rb, line 71
def cache_update_path uri, path = nil, update = true
if data = fetch_path(uri)
open(path, 'wb') { |io| io.write data } if path and update
data
else
Gem.read_binary(path) if path
end
end