Exception: Purist::Errors::PurityViolationError
- Defined in:
- lib/purist/errors.rb
Instance Attribute Summary collapse
-
#trace_point ⇒ Object
readonly
Returns the value of attribute trace_point.
Instance Method Summary collapse
-
#initialize(message = nil, trace_point:) ⇒ PurityViolationError
constructor
A new instance of PurityViolationError.
Constructor Details
#initialize(message = nil, trace_point:) ⇒ PurityViolationError
Returns a new instance of PurityViolationError.
10 11 12 13 14 |
# File 'lib/purist/errors.rb', line 10 def initialize( = nil, trace_point:) @trace_point = trace_point super( || trace_point.reject { |key| key == :backtrace }.inspect) end |
Instance Attribute Details
#trace_point ⇒ Object (readonly)
Returns the value of attribute trace_point.
8 9 10 |
# File 'lib/purist/errors.rb', line 8 def trace_point @trace_point end |