class SimpleCov::ArrayFilter
Public Instance Methods
matches?(source_files_list)
click to toggle source
Returns true if any of the file paths passed in the given array matches the string configured when initializing this Filter with SimpleCov::Filter.new(['some/path', 'other/path'])
# File lib/simplecov/filter.rb, line 48 def matches?(source_files_list) filter_argument.any? do |arg| source_files_list.filename =~ /#{arg}/ end end