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?

Constructor Details

This class inherits a constructor from Checkoff::SelectorClasses::Common::FunctionEvaluator

Instance Method Details

#evaluate(_resource, lhs, rhs) ⇒ Boolean

Parameters:

  • _resource (Asana::Resources::Task, Asana::Resources::Project)
  • lhs (Object)
  • rhs (Object)

Returns:

  • (Boolean)


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

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

#matches?Boolean

Returns:

  • (Boolean)


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

def matches?
  fn?(selector, FUNCTION_NAME)
end