Module: FastCov::FileTracker::YamlPatch

Defined in:
lib/fast_cov/trackers/file_tracker.rb

Instance Method Summary collapse

Instance Method Details

#load_file(path, *args, **kwargs) ⇒ Object



42
43
44
45
46
# File 'lib/fast_cov/trackers/file_tracker.rb', line 42

def load_file(path, *args, **kwargs)
  super.tap do
    FastCov::FileTracker.record(File.expand_path(path))
  end
end

#safe_load_file(path, *args, **kwargs) ⇒ Object



48
49
50
51
52
# File 'lib/fast_cov/trackers/file_tracker.rb', line 48

def safe_load_file(path, *args, **kwargs)
  super.tap do
    FastCov::FileTracker.record(File.expand_path(path))
  end
end

#unsafe_load_file(path, *args, **kwargs) ⇒ Object



54
55
56
57
58
# File 'lib/fast_cov/trackers/file_tracker.rb', line 54

def unsafe_load_file(path, *args, **kwargs)
  super.tap do
    FastCov::FileTracker.record(File.expand_path(path))
  end
end