Method: JMESPath::TokenStream#initialize

Defined in:
lib/jmespath/token_stream.rb

#initialize(expression, tokens) ⇒ TokenStream

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 TokenStream.

Parameters:



7
8
9
10
11
12
13
# File 'lib/jmespath/token_stream.rb', line 7

def initialize(expression, tokens)
  @expression = expression
  @tokens = tokens
  @token = nil
  @position = -1
  self.next
end