Class: Mutant::Matcher::Filter

Inherits:
Mutant::Matcher show all
Defined in:
lib/mutant/matcher/filter.rb

Overview

Matcher filter

Instance Method Summary collapse

Instance Method Details

#call(env) ⇒ Enumerable<Subject>

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Enumerate matches

Parameters:

Returns:



14
15
16
17
18
# File 'lib/mutant/matcher/filter.rb', line 14

def call(env)
  matcher
    .call(env)
    .select(&predicate.method(:call))
end