public Method

Tokenizer.next

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
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.