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.



20
21
22
23
# File 'lib/better_html/parser.rb', line 20

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

Instance Attribute Details

#locationObject (readonly) Also known as: loc

Returns the value of attribute location.



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

def location
  @location
end