Class: Mutant::Expression::Source Private
- Inherits:
-
Mutant::Expression
- Object
- Mutant::Expression
- Mutant::Expression::Source
- Defined in:
- lib/mutant/expression/source.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Constant Summary collapse
- REGEXP =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
/\Asource:(?<glob_expression>.+)\z/
Constants inherited from Mutant::Expression
SCOPE_NAME_PATTERN, SCOPE_SYMBOL_PATTERN
Instance Method Summary collapse
- #matcher(env:) ⇒ Object private
- #syntax ⇒ Object private
Methods inherited from Mutant::Expression
#match_length, new, #prefix?, try_parse
Instance Method Details
#matcher(env:) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
14 15 16 |
# File 'lib/mutant/expression/source.rb', line 14 def matcher(env:) Matcher::Chain.new(matchers: find_matchers(env:)) end |
#syntax ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
10 11 12 |
# File 'lib/mutant/expression/source.rb', line 10 def syntax "source:#{glob_expression}" end |