class Codecov::SimpleCov::Formatter
def shortened_filename(file)
-
(String)
-
Parameters:
-
file
(SimpleCov::SourceFile
) -- The file to use.
def shortened_filename(file) file.filename.gsub(/^#{::SimpleCov.root}/, '.').gsub(%r{^\./}, '') end