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

8 commits

Author SHA1 Message Date
Conrad Irwin
01c6f60b7a undo whitespace changes 2013-12-11 08:44:49 -08:00
Deepender
5717ff487b method_spec.rb fixed 2013-12-11 16:39:52 +05:30
Deepender
24ab88a307 issue 998 test added 2013-12-11 15:43:05 +05:30
Kyrylo Silin
e18bb8bf53 spec/method_spec.rb: cleanup Object after method addition 2013-11-22 01:34:19 +02:00
Aldric Giacomoni
50733344ae Stat now supports top-level method aliases
FIX #812
2013-11-15 21:37:42 -05:00
John Mair
97f1be86b2 Refactor Pry::Method + add Pry::Method::WeirdMethodLocator
WeirdMethodLocator is used by Pry::Method.from_binding() to locate the
method captured by the binding when the naive approach fails (i.e method(binding.eval('__method__')).

"WeirdMethods" include methods defined on the superclass to the 'self' of the binding, as well as methods
that have subsequently been renamed/replaced.

We also move Pry::Method::Disowned to its own file (disowned.rb)
2013-02-02 22:37:25 +01:00
John Mair
5f3129f44b Pry::Method.from_str() can no longer raise an exception
/cc @ryanf the following used to cause exceptions: Pry::Method.from_str("NonexistentClass#method", binding)
I just wrapped from_str in a rescue Pry::RescuableException
2012-12-22 22:59:03 +01:00
☈king
848b6bdbeb Rename for tabcompletion-friendliness. 2012-11-15 18:59:51 -06:00
Renamed from test/test_method.rb (Browse further)