Top Level Namespace

Defined Under Namespace

Modules: NetRecorder

Instance Method Summary collapse

Instance Method Details

#fakes_cacheObject

:nodoc:



41
42
43
44
45
46
47
48
49
50
51
# File 'lib/http.rb', line 41

def fakes_cache #:nodoc:
  fakes =
  if File.exist?(NetRecorder.cache_file)
    File.open(NetRecorder.cache_file, "r") do |f|
      YAML.load(f.read)
    end
  end
  
  return fakes if fakes.class == Hash
  nil
end