Class: Mutant::AST::Pattern::Parser Private

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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