Class: Vanguard::Matcher::Unary::NOT
- Inherits:
-
Vanguard::Matcher::Unary
- Object
- Vanguard::Matcher
- Vanguard::Matcher::Unary
- Vanguard::Matcher::Unary::NOT
- Defined in:
- lib/vanguard/matcher/unary/not.rb
Overview
Boolean not matcher
Instance Attribute Summary
Attributes inherited from Vanguard::Matcher::Unary
Instance Method Summary collapse
-
#matches?(value) ⇒ true, false
private
Return inverse of operand.
Instance Method Details
#matches?(value) ⇒ 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.
Return inverse of operand
18 19 20 |
# File 'lib/vanguard/matcher/unary/not.rb', line 18 def matches?(value) !operand_matches?(value) end |