Module: RSpecTracer::Tracker::IOHooks::IOReads Private

Defined in:
lib/rspec_tracer/tracker/io_hooks/io.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 IO.singleton_class. IO.read is the only method the brief asks for here - File.read covers the bulk of the use cases; IO.read exists mostly for compatibility with older code paths and third-party libraries that reach through IO.

Instance Method Summary collapse

Instance Method Details

#read(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.



17
18
19
20
# File 'lib/rspec_tracer/tracker/io_hooks/io.rb', line 17

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