Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v4.1.8) is shown here.
update_current_line(text)
private
Counts the number of newlines in the text and updates the current line
accordingly.
# File actionview/lib/action_view/vendor/html-scanner/html/tokenizer.rb, line 75
def update_current_line(text)
text.scan(/\r?\n/) { @current_line += 1 }
end