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

ensure whereami is executed for (pry) methods

This commit is contained in:
John Mair 2011-10-22 00:00:22 +13:00
parent 5a4af34ffe
commit 2a0a67cae6

View file

@ -12,7 +12,7 @@ class Pry
file = target.eval('__FILE__')
# /unknown/ for rbx
if file !~ /(\(.*\))|<.*>/ && file !~ /__unknown__/ && file != "" && file != "-e"
if file == Pry.eval_path || (file !~ /(\(.*\))|<.*>/ && file !~ /__unknown__/ && file != "" && file != "-e")
_pry_.process_line("whereami 5", "", target)
end
end