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

3 commits

Author SHA1 Message Date
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)