private Method

Tokenizer.update_current_line(text)

Counts the number of newlines in the text and updates the current line accordingly.

Source Code

# File action_controller/vendor/html-scanner/html/tokenizer.rb, line 74
def update_current_line(text)
  text.scan(/\r?\n/) { @current_line += 1 }
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.