mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
allow whereami to work in eccentric methods
This commit is contained in:
parent
ab458ff1f9
commit
20e0926c71
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ class Pry
|
|||
if [:__script__, nil, :__binding__, :__binding_impl__].include?(meth_name)
|
||||
nil
|
||||
else
|
||||
new(b.eval("method(:#{meth_name})"))
|
||||
new(b.eval("method(#{meth_name.to_s.inspect})"))
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue