Class: Vanguard::Matcher::Binary::XOR
- Inherits:
-
Vanguard::Matcher::Binary
- Object
- Vanguard::Matcher
- Vanguard::Matcher::Binary
- Vanguard::Matcher::Binary::XOR
- Defined in:
- lib/vanguard/matcher/binary/xor.rb
Overview
Boolean xor connector
Instance Attribute Summary
Attributes inherited from Vanguard::Matcher::Binary
Instance Method Summary collapse
-
#matches?(value) ⇒ true, false
private
Test if value matches left xor right.
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.
Test if value matches left xor right
15 16 17 |
# File 'lib/vanguard/matcher/binary/xor.rb', line 15 def matches?(value) left_matches?(value) ^ right_matches?(value) end |