From 8494484dc0b1901d9ba49a31c6a6b3771b8942a2 Mon Sep 17 00:00:00 2001 From: keiju Date: Wed, 26 Dec 2012 14:56:57 +0000 Subject: [PATCH] * lib/irb/context.rb: fix IRB::Inspector#keys_with_inspector [Bug #7598] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ lib/irb/inspector.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 5bd9a4a43a..cbabf013c4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Wed Dec 26 23:55:18 2012 Keiju Ishitsuka + + * lib/irb/context.rb: fix IRB::Inspector#keys_with_inspector [Bug #7598] + Wed Dec 26 23:26:15 2012 Keiju Ishitsuka * lib/irb/context.rb: IRB::Context#use_readline= has been obsolete diff --git a/lib/irb/inspector.rb b/lib/irb/inspector.rb index 121309f3c6..eaff44fc0b 100644 --- a/lib/irb/inspector.rb +++ b/lib/irb/inspector.rb @@ -51,7 +51,7 @@ module IRB # :nodoc: # Determines the inspector to use where +inspector+ is one of the keys passed # during inspector definition. def self.keys_with_inspector(inspector) - select{|k,v| v == inspector}.collect{|k, v| k} + INSPECTORS.select{|k,v| v == inspector}.collect{|k, v| k} end # Example