Class: SimpleCov::RegexFilter
Instance Attribute Summary
Attributes inherited from Filter
Instance Method Summary collapse
-
#matches?(source_file) ⇒ Boolean
Returns true when the given source file’s filename matches the regex configured when initializing this Filter with RegexFilter.new(/someregex/).
Methods inherited from Filter
build_filter, class_for_argument, #initialize, #passes?
Constructor Details
This class inherits a constructor from SimpleCov::Filter
Instance Method Details
#matches?(source_file) ⇒ Boolean
Returns true when the given source file’s filename matches the regex configured when initializing this Filter with RegexFilter.new(/someregex/)
64 65 66 |
# File 'lib/simplecov/filter.rb', line 64 def matches?(source_file) (source_file.project_filename =~ filter_argument) end |