Class: Checkoff::SelectorClasses::Common::EqualsPFunctionEvaluator

Inherits:
FunctionEvaluator show all
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

#initialize

Methods inherited from FunctionEvaluator

#evaluate_arg?

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, lhs, rhs) ⇒ Boolean

Parameters:

Returns:



85
86
87
# File 'lib/checkoff/internal/selector_classes/common.rb', line 85

def evaluate(_resource, lhs, rhs)
  lhs == rhs
end

#matches?Boolean

Returns:



77
78
79
# File 'lib/checkoff/internal/selector_classes/common.rb', line 77

def matches?
  fn?(selector, FUNCTION_NAME)
end