aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--lib/irb/inspector.rb2
2 files changed, 5 insertions, 1 deletions
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 <keiju@ishitsuka.com>
+
+ * lib/irb/context.rb: fix IRB::Inspector#keys_with_inspector [Bug #7598]
+
Wed Dec 26 23:26:15 2012 Keiju Ishitsuka <keiju@ishitsuka.com>
* 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