Class: Mutant::Predicate::Matcher

Inherits:
Mutant::Predicate show all
Defined in:
lib/mutant/predicate/matcher.rb

Overview

Return matcher

Instance Method Summary collapse

Methods inherited from Mutant::Predicate

handle

Instance Method Details

#match?(subject) ⇒ true, false

Test if subject matches

Parameters:

Returns:

  • (true)

    if subject is handled by matcher

  • (false)

    otherwise



19
20
21
# File 'lib/mutant/predicate/matcher.rb', line 19

def match?(subject)
  subjects.include?(subject)
end