method

find_data

v1_9_3_392 - Show latest stable - Class: Gem::FakeFetcher
find_data(path)
public

No documentation available.

# File lib/rubygems/test_utilities.rb, line 34
  def find_data(path)
    path = path.to_s
    @paths << path
    raise ArgumentError, 'need full URI' unless path =~ %^https?://'

    unless @data.key? path then
      raise Gem::RemoteFetcher::FetchError.new("no data for #{path}", path)
    end

    @data[path]
  end