From f8835a9b2c3ae67ac733bacf5e5d35ca89420291 Mon Sep 17 00:00:00 2001 From: John Mair Date: Sun, 17 Jul 2011 04:40:44 +1200 Subject: [PATCH] fixed burg's bug in Pry.binding_for where TOPLEVEL_BINDING comparision was round the wrong way --- lib/pry/pry_class.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pry/pry_class.rb b/lib/pry/pry_class.rb index 8728907c..38cca0ba 100644 --- a/lib/pry/pry_class.rb +++ b/lib/pry/pry_class.rb @@ -247,7 +247,7 @@ class Pry if target.is_a?(Binding) target else - if target == TOPLEVEL_BINDING.eval('self') + if TOPLEVEL_BINDING.eval('self') == target TOPLEVEL_BINDING else target.__binding__