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