Class: Checkoff::SelectorClasses::Common::StringLiteralEvaluator
- Inherits:
-
FunctionEvaluator
- Object
- FunctionEvaluator
- FunctionEvaluator
- Checkoff::SelectorClasses::Common::StringLiteralEvaluator
- Defined in:
- lib/checkoff/internal/selector_classes/common.rb
Overview
String literals
Instance Method Summary collapse
-
#evaluate(_resource) ⇒ String
@sg-ignore.
- #matches? ⇒ Boolean
Methods inherited from FunctionEvaluator
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) ⇒ String
@sg-ignore
244 245 246 |
# File 'lib/checkoff/internal/selector_classes/common.rb', line 244 def evaluate(_resource) T.cast(selector, String) end |
#matches? ⇒ Boolean
237 238 239 |
# File 'lib/checkoff/internal/selector_classes/common.rb', line 237 def matches? selector.is_a?(String) end |