Class: Checkoff::SelectorClasses::Common::EqualsPFunctionEvaluator
- Inherits:
-
FunctionEvaluator
- Object
- FunctionEvaluator
- FunctionEvaluator
- Checkoff::SelectorClasses::Common::EqualsPFunctionEvaluator
- Defined in:
- lib/checkoff/internal/selector_classes/common.rb
Overview
:equals? function
Constant Summary collapse
- FUNCTION_NAME =
:equals?
Instance Method Summary collapse
Methods inherited from FunctionEvaluator
Methods inherited from FunctionEvaluator
Constructor Details
This class inherits a constructor from Checkoff::SelectorClasses::Common::FunctionEvaluator
Instance Method Details
#evaluate(_resource, lhs, rhs) ⇒ Boolean
86 87 88 |
# File 'lib/checkoff/internal/selector_classes/common.rb', line 86 def evaluate(_resource, lhs, rhs) lhs == rhs end |
#matches? ⇒ Boolean
78 79 80 |
# File 'lib/checkoff/internal/selector_classes/common.rb', line 78 def matches? fn?(selector, FUNCTION_NAME) end |