Exception: BetterHtml::TestHelper::SafetyError

Inherits:
InterpolatorError show all
Defined in:
lib/better_html/test_helper/safety_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, location:) ⇒ SafetyError

Returns a new instance of SafetyError.



8
9
10
11
# File 'lib/better_html/test_helper/safety_error.rb', line 8

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

Instance Attribute Details

#locationObject (readonly)

Returns the value of attribute location.



6
7
8
# File 'lib/better_html/test_helper/safety_error.rb', line 6

def location
  @location
end