From 54989203e5cb840734f2a950532ac2934f5385c5 Mon Sep 17 00:00:00 2001 From: Robert Gleeson Date: Fri, 17 Jan 2014 10:44:11 +0100 Subject: [PATCH] update whereami command to use Pry.main (last one). --- lib/pry/commands/whereami.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pry/commands/whereami.rb b/lib/pry/commands/whereami.rb index 2ec82252..1cf4bab7 100644 --- a/lib/pry/commands/whereami.rb +++ b/lib/pry/commands/whereami.rb @@ -109,7 +109,7 @@ class Pry end def top_level? - target_self == TOPLEVEL_BINDING.eval("self") + target_self == Pry.main end def handle_internal_binding