Class: Checkoff::SelectorClasses::Common::AndFunctionEvaluator
- Inherits:
-
FunctionEvaluator
- Object
- FunctionEvaluator
- FunctionEvaluator
- Checkoff::SelectorClasses::Common::AndFunctionEvaluator
- Defined in:
- lib/checkoff/internal/selector_classes/common.rb
Overview
:and function
Constant Summary collapse
- FUNCTION_NAME =
:and
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, *args) ⇒ Boolean
19 20 21 |
# File 'lib/checkoff/internal/selector_classes/common.rb', line 19 def evaluate(_resource, *args) args.all? { |arg| arg } end |
#matches? ⇒ Boolean
12 13 14 |
# File 'lib/checkoff/internal/selector_classes/common.rb', line 12 def matches? fn?(selector, FUNCTION_NAME) end |