Class: Checkoff::SelectorClasses::Common::NotFunctionEvaluator
- Inherits:
-
FunctionEvaluator
- Object
- FunctionEvaluator
- FunctionEvaluator
- Checkoff::SelectorClasses::Common::NotFunctionEvaluator
- Defined in:
- lib/checkoff/internal/selector_classes/common.rb
Overview
:not function
Constant Summary collapse
- FUNCTION_NAME =
:not
Instance Method Summary collapse
Methods inherited from FunctionEvaluator
Methods inherited from FunctionEvaluator
Methods included from Logging
#debug, #error, #finer, #info, #logger, #warn
Constructor Details
This class inherits a constructor from Checkoff::SelectorClasses::Common::FunctionEvaluator
Instance Method Details
#evaluate(_resource, subvalue) ⇒ Boolean
54 55 56 |
# File 'lib/checkoff/internal/selector_classes/common.rb', line 54 def evaluate(_resource, subvalue) !subvalue end |
#matches? ⇒ Boolean
47 48 49 |
# File 'lib/checkoff/internal/selector_classes/common.rb', line 47 def matches? fn?(selector, FUNCTION_NAME) end |