Return the next token in the sequence, or nil if there are no more tokens in the stream.
Source Code
# File action_controller/vendor/html-scanner/html/tokenizer.rb, line 34 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
<code/>and<pre/>for code samples.