Class: Mutant::Expression::Descendants Private

Inherits:
Mutant::Expression show all
Defined in:
lib/mutant/expression/descendants.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.

/\Adescendants:(?<const_name>.+)\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.

rubocop:disable Lint/UnusedMethodArgument



15
16
17
# File 'lib/mutant/expression/descendants.rb', line 15

def matcher(env:)
  Matcher::Descendants.new(const_name:)
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/descendants.rb', line 10

def syntax
  "descendants:#{const_name}"
end