Class: SimpleCov::ArrayFilter

### Home Classes Methods

### In Files

- lib/simplecov/filter.rb

### Parent

SimpleCov::Filter

### Methods

- #matches?

### Class/Module Index

Quicksearch

- SimpleCov
- SimpleCov::ArrayFilter
- SimpleCov::ArrayMergeHelper
- SimpleCov::BlockFilter
- SimpleCov::CommandGuesser
- SimpleCov::Configuration
- SimpleCov::ExitCodes
- SimpleCov::FileList
- SimpleCov::Filter
- SimpleCov::Formatter
- SimpleCov::Formatter::MultiFormatter
- SimpleCov::Formatter::SimpleFormatter
- SimpleCov::HashMergeHelper
- SimpleCov::LastRun
- SimpleCov::Profiles
- SimpleCov::Railtie
- SimpleCov::Result
- SimpleCov::ResultMerger
- SimpleCov::SourceFile
- SimpleCov::SourceFile::Line
- SimpleCov::StringFilter
- SimpleCov::VERSION
- Coverage

No matching classes.

# 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 StringFilter.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

[Validate]

Generated with the Darkfish Rdoc Generator 2.