Class: Vanguard::Matcher::Binary::AND

Inherits:
Vanguard::Matcher::Binary show all
Defined in:
lib/vanguard/matcher/binary/and.rb

Overview

Boolean and connector

Instance Attribute Summary

Attributes inherited from Vanguard::Matcher::Binary

#left, #right

Instance Method Summary collapse

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 and right



14
15
16
# File 'lib/vanguard/matcher/binary/and.rb', line 14

def matches?(value)
  left_matches?(value) && right_matches?(value)
end