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:
parent
de11a1bb52
commit
f8835a9b2c
1 changed files with 1 additions and 1 deletions
|
@ -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__
|
||||
|
|
Loading…
Reference in a new issue