1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00
Commit graph

7 commits

Author SHA1 Message Date
Kyrylo Silin
f83a26f621 rubocop: fix offences of the Style/TrivialAccessors cop 2019-03-02 16:39:17 +02:00
Kyrylo Silin
b98cff1b85 rubocop: fix offences of the Style/ClassAndModuleChildren cop 2019-02-27 02:23:52 +02:00
Kyrylo Silin
04d4f424e3 rubocop: fix offences regarding spaces
Fixes offences of the following cops:

* Layout/SpaceAroundEqualsInParameterDefault
* Layout/SpaceAroundOperators
* Layout/SpaceBeforeBlockBraces
* Layout/SpaceInsideBlockBraces
2018-11-04 17:34:24 +08:00
robert
b69fbcaf5e fix warning about signature of respond_to? on 2.4 2017-05-27 18:41:00 +01:00
Robert Gleeson
1e6333cba0 improve Pry::LastException docs. 2014-03-17 11:28:48 +01:00
Ryan Fitzgerald
67806cff46 Unwrap last exception when setting _ex_ 2014-03-09 19:39:01 -07:00
Robert Gleeson
24bbe12dc2 add Pry::LastException.
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.
2014-03-10 02:59:11 +01:00