class SimpleCov::RegexFilter

Public Instance Methods

matches?(source_file) click to toggle source

Returns true when the given source file's filename matches the regex configured when initializing this Filter with RegexFilter.new(/someregex/)

# File lib/simplecov/filter.rb, line 62
def matches?(source_file)
  (source_file.project_filename =~ filter_argument)
end