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
1 changed files with 1 additions and 1 deletions

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