1
0
Fork 0
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:
Ryan Fitzgerald 2011-11-30 22:10:39 -08:00
parent ab458ff1f9
commit 20e0926c71

View file

@ -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