Class: Mutant::Predicate::Attribute::Equality
- Inherits:
-
Mutant::Predicate::Attribute
- Object
- Mutant::Predicate
- Mutant::Predicate::Attribute
- Mutant::Predicate::Attribute::Equality
- Defined in:
- lib/mutant/predicate/attribute.rb
Overview
Equality based attribute predicate
Constant Summary collapse
- PATTERN =
/\Acode:(?<code>[[:xdigit:]]{1,6})\z/.freeze
Instance Method Summary collapse
-
#match?(object) ⇒ true, false
private
Test for match.
Methods inherited from Mutant::Predicate
Instance Method Details
#match?(object) ⇒ true, false
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.
Test for match
61 62 63 |
# File 'lib/mutant/predicate/attribute.rb', line 61 def match?(object) expectation.eql?(value(object)) end |