method

cache_update_path

Importance_0
v2_5_5 - Show latest stable - 0 notes - Class: FakeFetcher
cache_update_path(uri, path = nil, update = true) 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 74
  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
Register or log in to add new notes.