summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKyrylo Silin <silin@kyrylo.org>2015-06-29 12:46:41 +0300
committerKyrylo Silin <silin@kyrylo.org>2015-06-29 12:46:41 +0300
commit271212dff081944458564404cb28ac152fcb225b (patch)
treec7de072cd303087326f4d8e5d5d12fca592a133e /lib
parent001a00d514a53f2ab87bd3b5ba284e82c0dd1c17 (diff)
parentc2ed9ec135bd791a32c70fbe05cc0508ea17c40e (diff)
downloadpry-271212dff081944458564404cb28ac152fcb225b.tar.gz
Merge pull request #1398 from jbarreneche/bug/module-prepend-whereami
Bug with module#prepend in ruby 2.0.0
Diffstat (limited to 'lib')
-rw-r--r--lib/pry/method/weird_method_locator.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/pry/method/weird_method_locator.rb b/lib/pry/method/weird_method_locator.rb
index a668d16d..08c0a361 100644
--- a/lib/pry/method/weird_method_locator.rb
+++ b/lib/pry/method/weird_method_locator.rb
@@ -104,8 +104,10 @@ class Pry
# TODO: Fix up the exception handling so we don't need a bare rescue
if normal_method?(guess)
return guess
- else
+ elsif guess != guess.super
guess = guess.super
+ else
+ break
end
end