Class: SimpleCov::StringFilter
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 string configured when initializing this Filter with StringFilter.new(‘somestring).
Methods inherited from Filter
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 string configured when initializing this Filter with StringFilter.new(‘somestring)
32 33 34 |
# File 'lib/simplecov/filter.rb', line 32 def matches?(source_file) (source_file.filename =~ /#{filter_argument}/) end |