summaryrefslogtreecommitdiff
path: root/lib/pry/last_exception.rb
Commit message (Collapse)AuthorAgeFilesLines
* fix warning about signature of respond_to? on 2.4robert2017-05-271-2/+2
|
* improve Pry::LastException docs.Robert Gleeson2014-03-171-3/+27
|
* Unwrap last exception when setting _ex_Ryan Fitzgerald2014-03-091-3/+5
|
* add Pry::LastException.Robert Gleeson2014-03-101-0/+35
pry adds behavior(methods) to the exception it returns at _pry_.last_exception in a repl but when the exception has been passed along as a frozen object ruby will raise an exception and pry fails to function as usual. the commit changes that behavior so that the exception is wrapped in an instance of Pry::LastException who is a subclass of BasicObject. Pry::LastException is a copy&paste of what was defined dynamically in pry_instance.rb but it allows for frozen exceptions to remain frozen and still provides the methods pry dynamically defined on an exception object before. through a wrapper class pry also no longer modifies an exception object that it doesn't own.