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.



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

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

Instance Attribute Details

#locationObject (readonly)

Returns the value of attribute location.



4
5
6
# File 'lib/better_html/test_helper/safety_error.rb', line 4

def location
  @location
end