Commit Graph

5 Commits

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