Exception: HtmlTokenizer::ParserError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/html_tokenizer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, line, column) ⇒ ParserError

Returns a new instance of ParserError.



6
7
8
9
10
# File 'lib/html_tokenizer.rb', line 6

def initialize(message, line, column)
  super(message)
  @line = line
  @column = column
end

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column.



5
6
7
# File 'lib/html_tokenizer.rb', line 5

def column
  @column
end

#lineObject (readonly)

Returns the value of attribute line.



5
6
7
# File 'lib/html_tokenizer.rb', line 5

def line
  @line
end