method
fetch_path
v2_4_6 -
Show latest stable
- Class:
Gem::FakeFetcher
fetch_path(path, mtime = nil, head = false)public
No documentation available.
# File lib/rubygems/test_utilities.rb, line 60
def fetch_path path, mtime = nil, head = false
data = find_data(path)
if data.respond_to?(:call) then
data.call
else
if path.to_s =~ /gz$/ and not data.nil? and not data.empty? then
data = Gem.gunzip data
end
data
end
end