Class: Vanguard::Matcher::Unary::NOT

Inherits:
Vanguard::Matcher::Unary show all
Defined in:
lib/vanguard/matcher/unary/not.rb

Overview

Boolean not matcher

Instance Attribute Summary

Attributes inherited from Vanguard::Matcher::Unary

#operand

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.

Return inverse of operand

Returns:

  • (true)

    if operand returns false

  • (false)

    otherwise



18
19
20
# File 'lib/vanguard/matcher/unary/not.rb', line 18

def matches?(value)
  !operand_matches?(value)
end