Class: Mutant::AST::Regexp::Transformer::NamedGroup::ExpressionToAST Private
- Inherits:
-
ExpressionToAST
- Object
- ExpressionToAST
- Mutant::AST::Regexp::Transformer::NamedGroup::ExpressionToAST
- Defined in:
- lib/mutant/ast/regexp/transformer/named_group.rb
Overview
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.
Mapper from ‘Regexp::Expression` to `Parser::AST::Node`
Constant Summary
Constants inherited from ExpressionToAST
Instance Method Summary collapse
-
#call ⇒ Parser::AST::Node
private
Transform named group into node.
Methods included from Procto
Instance Method Details
#call ⇒ Parser::AST::Node
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.
Transform named group into node
17 18 19 |
# File 'lib/mutant/ast/regexp/transformer/named_group.rb', line 17 def call quantify(ast(expression.name, *children)) end |