Commit Graph

10 Commits

Author SHA1 Message Date
yui-knk e99ae3df08 Fix yard documentation warnings(fix #1163) 2014-03-16 23:54:45 +09:00
Conrad Irwin ad655b7384 Method::Patcher should preserve method visibility
(Works around https://github.com/rubinius/rubinius/issues/2248)
2013-03-30 17:42:46 -07:00
Conrad Irwin 28d0905eb6 Move cache reading into Pry::Code for consistency
This necessitates ensuring that the wrapping doesn't add any newlines
2013-03-28 01:05:55 -07:00
Conrad Irwin 29397efb37 Modify methods using Pry::Method#redefine
I considered calling redefine source=, but Pry::Method objects are not
designed to be mutable.
2013-03-28 01:02:13 -07:00
Conrad Irwin da1283b000 s/code_object/method 2013-03-28 00:25:50 -07:00
Conrad Irwin e43daac85c Allow Pry::Method::Patcher to work without _pry_ 2013-03-28 00:25:50 -07:00
Conrad Irwin f2bdd33ef0 Rename Pry::Commands::Edit::MethodPatcher to Pry::Method::Patcher 2013-03-27 23:39:44 -07:00
Conrad Irwin a7c85d7882 Move MethodPatcher to Method::Patcher 2013-03-27 23:12:56 -07:00
Patrick Ritchie e7d8eb556c check for directory? in WeirdMethodLocator#valid_file? prevents crash under jruby 2013-03-05 11:27:45 -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