Class: Mutant::Expression::Source Private

Inherits:
Mutant::Expression show all
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

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

#syntaxObject

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