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

update Pry.binding_for() to use Pry.main

This commit is contained in:
Robert Gleeson 2014-01-17 10:39:13 +01:00
parent 74c07a82fc
commit 0a8591aee8

View file

@ -353,7 +353,7 @@ Readline version #{ver} detected - will not auto_resize! correctly.
if Binding === target
target
else
if TOPLEVEL_BINDING.eval('self') == target
if Pry.main == target
TOPLEVEL_BINDING
else
target.__binding__