Class Pry::LastException
In: lib/pry/last_exception.rb
Parent: BasicObject

{Pry::LastException} is a proxy class who wraps an Exception object for {Pry#last_exception}. it extends the exception object with methods that help pry commands be useful.

the original exception object is not modified and method calls are forwarded to the wrapped exception object.

Methods

Attributes

bt_index  [RW] 

Public Class methods

Public Instance methods

@return [String]

 returns the path to a file for the current backtrace. see {#bt_index}.

@return [Fixnum]

 returns the line for the current backtrace. see {#bt_index}.

@return [Exception]

  returns the wrapped exception

[Validate]