Class: Checkoff::SelectorClasses::Common::NameStartsWithPFunctionEvaluator
- Inherits:
-
FunctionEvaluator
- Object
- FunctionEvaluator
- FunctionEvaluator
- Checkoff::SelectorClasses::Common::NameStartsWithPFunctionEvaluator
- Defined in:
- lib/checkoff/internal/selector_classes/common.rb
Overview
:name_starts_with? function
Constant Summary collapse
- FUNCTION_NAME =
:name_starts_with?
Instance Method Summary collapse
-
#evaluate(resource, prefix) ⇒ Boolean
@sg-ignore.
- #evaluate_arg?(_index) ⇒ Boolean
- #matches? ⇒ Boolean
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, prefix) ⇒ Boolean
@sg-ignore
230 231 232 |
# File 'lib/checkoff/internal/selector_classes/common.rb', line 230 def evaluate(resource, prefix) resource.name.start_with?(prefix) end |
#evaluate_arg?(_index) ⇒ Boolean
222 223 224 |
# File 'lib/checkoff/internal/selector_classes/common.rb', line 222 def evaluate_arg?(_index) false end |
#matches? ⇒ Boolean
218 219 220 |
# File 'lib/checkoff/internal/selector_classes/common.rb', line 218 def matches? fn?(selector, FUNCTION_NAME) end |