next()
public
Return the next token in the
sequence, or nil if there are no more tokens in the stream.
Show source
def next
return nil if @scanner.eos?
@position = @scanner.pos
@line = @current_line
if @scanner.check(/<\S/)
update_current_line(scan_tag)
else
update_current_line(scan_text)
end
end