Exception: BetterHtml::Parser::Error

Inherits:
HtmlError
  • Object
show all
Defined in:
lib/better_html/parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, location:) ⇒ Error

Returns a new instance of Error.



17
18
19
20
# File 'lib/better_html/parser.rb', line 17

def initialize(message, location:)
  super(message)
  @location = location
end

Instance Attribute Details

#locationObject (readonly) Also known as: loc

Returns the value of attribute location.



14
15
16
# File 'lib/better_html/parser.rb', line 14

def location
  @location
end