class SimpleCov::ArrayFilter
Public Class Methods
new(filter_argument)
click to toggle source
Calls superclass method
SimpleCov::Filter::new
# File lib/simplecov/filter.rb, line 75 def initialize(filter_argument) filter_objects = filter_argument.map do |arg| Filter.build_filter(arg) end super(filter_objects) end
Public Instance Methods
matches?(source_files_list)
click to toggle source
Returns true if any of the filters in the array match the given source file. Configure this Filter
like StringFilter.new
(['some/path', /^some_regex/, Proc.new {|src_file| … }])
# File lib/simplecov/filter.rb, line 85 def matches?(source_files_list) filter_argument.any? do |arg| arg.matches?(source_files_list) end end