class JMESPath::Lexer::CharacterStream

Public Class Methods

new(chars) click to toggle source
# File lib/jmespath/lexer.rb, line 309
def initialize(chars)
  @chars = chars
  @position = 0
end

Public Instance Methods

current() click to toggle source
# File lib/jmespath/lexer.rb, line 314
def current
  @chars[@position]
end
next() click to toggle source
# File lib/jmespath/lexer.rb, line 318
def next
  @position += 1
  @chars[@position]
end
position() click to toggle source
# File lib/jmespath/lexer.rb, line 323
def position
  @position
end