method

fetch_path

Importance_0
v2_2_9 - Show latest stable - 0 notes - Class: FakeFetcher
fetch_path(path, mtime = nil, head = false) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/rubygems/test_utilities.rb, line 59
  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
Register or log in to add new notes.