Top Level Namespace
Defined Under Namespace
Modules: Fake, NetRecorder
Instance Method Summary collapse
-
#fakes_cache ⇒ Object
:nodoc:.
Instance Method Details
#fakes_cache ⇒ Object
:nodoc:
51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/http.rb', line 51 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 |