Module: LunaPark::Extensions::Exceptions::Substitutive::InstanceMethods
- Defined in:
- lib/luna_park/extensions/exceptions/substitutive.rb
Instance Attribute Summary collapse
- #backtrace ⇒ Object
-
#origin ⇒ Object
Returns the value of attribute origin.
Instance Method Summary collapse
-
#cover_up_backtrace ⇒ Object
Cover up trace for current exception.
Instance Attribute Details
#backtrace ⇒ Object
48 49 50 |
# File 'lib/luna_park/extensions/exceptions/substitutive.rb', line 48 def backtrace super || @backtrace end |
#origin ⇒ Object
Returns the value of attribute origin.
45 46 47 |
# File 'lib/luna_park/extensions/exceptions/substitutive.rb', line 45 def origin @origin end |
Instance Method Details
#cover_up_backtrace ⇒ Object
Cover up trace for current exception
72 73 74 75 76 77 |
# File 'lib/luna_park/extensions/exceptions/substitutive.rb', line 72 def cover_up_backtrace new = dup new.backtrace = backtrace new.origin = self new end |