Class: SimpleCov::StringFilter

### Home Classes Methods

### In Files

- lib/simplecov/filter.rb

### Parent

SimpleCov::Filter

### Methods

- #matches?

### Class/Module Index

Quicksearch

- SimpleCov
- SimpleCov::Adapters
- SimpleCov::ArrayMergeHelper
- SimpleCov::BlockFilter
- SimpleCov::CommandGuesser
- SimpleCov::Configuration
- SimpleCov::CoverageDataError
- SimpleCov::ExitCodes
- SimpleCov::FileList
- SimpleCov::Filter
- SimpleCov::Formatter
- SimpleCov::Formatter::MultiFormatter
- SimpleCov::Formatter::SimpleFormatter
- SimpleCov::HashMergeHelper
- SimpleCov::JSON
- SimpleCov::LastRun
- SimpleCov::Railtie
- SimpleCov::Result
- SimpleCov::ResultMerger
- SimpleCov::SourceFile
- SimpleCov::SourceFile::Line
- SimpleCov::StringFilter

No matching classes.

# SimpleCov::StringFilter

### Public Instance Methods

matches?(source_file) click to toggle source

Returns true when the given source file's filename matches the string configured when initializing this Filter with StringFilter.new('somestring)

    # File lib/simplecov/filter.rb, line 32
    def matches?(source_file)
      (source_file.filename =~ /#{filter_argument}/)
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.