method
fetch_size
ruby latest stable - Class:
Gem::FakeFetcher
fetch_size(path)public
No documentation available.
# File lib/rubygems/test_utilities.rb, line 125
def fetch_size(path)
path = path.to_s
@paths << path
raise ArgumentError, 'need full URI' unless path =~ %^http://'
unless @data.key? path then
raise Gem::RemoteFetcher::FetchError.new("no data for #{path}", path)
end
data = @data[path]
data.respond_to?(:call) ? data.call : data.length
end