class AdLint::TokensContent
Public Class Methods
new(tok_ary)
click to toggle source
# File lib/adlint/lexer.rb, line 172 def initialize(tok_ary) @token_ary = tok_ary end
Public Instance Methods
empty?()
click to toggle source
# File lib/adlint/lexer.rb, line 184 def empty? @token_ary.empty? end
location()
click to toggle source
# File lib/adlint/lexer.rb, line 176 def location if self.empty? nil else @token_ary.first.location end end
next_token()
click to toggle source
# File lib/adlint/lexer.rb, line 188 def next_token if empty? nil else @token_ary.shift end end