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

fixed burg's bug in Pry.binding_for where TOPLEVEL_BINDING comparision was round the wrong way

This commit is contained in:
John Mair 2011-07-17 04:40:44 +12:00
parent de11a1bb52
commit f8835a9b2c

View file

@ -247,7 +247,7 @@ class Pry
if target.is_a?(Binding)
target
else
if target == TOPLEVEL_BINDING.eval('self')
if TOPLEVEL_BINDING.eval('self') == target
TOPLEVEL_BINDING
else
target.__binding__