class JMESPath::Lexer::CharacterStream
Public Class Methods
new(chars)
click to toggle source
# File lib/jmespath/lexer.rb, line 303 def initialize(chars) @chars = chars @position = 0 end
Public Instance Methods
current()
click to toggle source
# File lib/jmespath/lexer.rb, line 308 def current @chars[@position] end
next()
click to toggle source
# File lib/jmespath/lexer.rb, line 312 def next @position += 1 @chars[@position] end
position()
click to toggle source
# File lib/jmespath/lexer.rb, line 317 def position @position end