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, position, line, column) ⇒ ParserError

Returns a new instance of ParserError.



8
9
10
11
12
13
# File 'lib/html_tokenizer.rb', line 8

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

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column.



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

def column
  @column
end

#lineObject (readonly)

Returns the value of attribute line.



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

def line
  @line
end

#positionObject (readonly)

Returns the value of attribute position.



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

def position
  @position
end