Class: Mutant::Predicate::Matcher
- Inherits:
-
Mutant::Predicate
- Object
- Mutant::Predicate
- Mutant::Predicate::Matcher
- Defined in:
- lib/mutant/predicate/matcher.rb
Overview
Return matcher
Instance Method Summary collapse
-
#match?(subject) ⇒ true, false
Test if subject matches.
Methods inherited from Mutant::Predicate
Instance Method Details
#match?(subject) ⇒ true, false
Test if subject matches
19 20 21 |
# File 'lib/mutant/predicate/matcher.rb', line 19 def match?(subject) subjects.include?(subject) end |