Class: Mutant::AST::Pattern::Parser Private
- Inherits:
-
Object
- Object
- Mutant::AST::Pattern::Parser
- Defined in:
- lib/mutant/ast/pattern/parser.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.
Class Method Summary collapse
- .call(tokens) ⇒ Object private
Instance Method Summary collapse
-
#initialize(tokens) ⇒ Parser
constructor
private
A new instance of Parser.
Constructor Details
#initialize(tokens) ⇒ Parser
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.
Returns a new instance of Parser.
9 10 11 12 |
# File 'lib/mutant/ast/pattern/parser.rb', line 9 def initialize(tokens) @tokens = tokens @next_position = 0 end |
Class Method Details
.call(tokens) ⇒ 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/ast/pattern/parser.rb', line 14 def self.call(tokens) new(tokens).__send__(:run) end |