static public Method

Tokenizer.new(text)

Create a new Tokenizer for the given text.

Source Code

# File action_controller/vendor/html-scanner/html/tokenizer.rb, line 25
def initialize(text)
  @scanner = StringScanner.new(text)
  @position = 0
  @line = 0
  @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.