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.
new(text)
public
Create a new Tokenizer for
the given text.
# File actionview/lib/action_view/vendor/html-scanner/html/tokenizer.rb, line 25
def initialize(text)
text.encode!
@scanner = StringScanner.new(text)
@position = 0
@line = 0
@current_line = 1
end