Module: RSpecTracer::Tracker::IOHooks::JSONReads Private

Defined in:
lib/rspec_tracer/tracker/io_hooks/json.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Prepended onto JSON.singleton_class. JSON.load_file is the user-level file-reading entry point; JSON.parse takes a string and is not hooked here.

Instance Method Summary collapse

Instance Method Details

#load_file(path) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Internal method on the tracer pipeline.



16
17
18
19
# File 'lib/rspec_tracer/tracker/io_hooks/json.rb', line 16

def load_file(path, ...)
  IOHooks.record(path) if Thread.current[BUCKET_KEY]
  super
end