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:
parent
5a4af34ffe
commit
2a0a67cae6
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue