Class: Mutant::Expression::Descendants Private
- Inherits:
-
Mutant::Expression
- Object
- Mutant::Expression
- Mutant::Expression::Descendants
- 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/.freeze
Constants inherited from Mutant::Expression
SCOPE_NAME_PATTERN, SCOPE_SYMBOL_PATTERN
Instance Method Summary collapse
- #matcher ⇒ Object private
- #syntax ⇒ Object private
Methods inherited from Mutant::Expression
#match_length, new, #prefix?, try_parse
Instance Method Details
#matcher ⇒ 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/descendants.rb', line 14 def matcher Matcher::Descendants.new(const_name: const_name) 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/descendants.rb', line 10 def syntax "descendants:#{const_name}" end |