Class: Mutant::AST::Pattern Private
- Inherits:
-
Object
- Object
- Mutant::AST::Pattern
- Includes:
- Unparser::Adamantium
- Defined in:
- lib/mutant/ast/pattern/parser.rb,
lib/mutant/ast/pattern.rb,
lib/mutant/ast/pattern/lexer.rb,
lib/mutant/ast/pattern/token.rb,
lib/mutant/ast/pattern/source.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.
rubocop:disable Metrics/ClassLength rubocop:disable Metrics/MethodLength
Defined Under Namespace
Classes: Any, Deep, Lexer, Node, None, Parser, Source, Token
Class Method Summary collapse
- .parse(syntax) ⇒ Object private
Class Method Details
.parse(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.
8 9 10 11 12 |
# File 'lib/mutant/ast/pattern.rb', line 8 def self.parse(syntax) Lexer.call(syntax) .lmap(&:display_message) .bind(&Parser.public_method(:call)) end |