Class: Mutant::Matcher::Filter Private

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

Overview

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

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:



12
13
14
15
16
# File 'lib/mutant/matcher/filter.rb', line 12

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