aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkeiju <keiju@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-26 14:56:57 +0000
committerkeiju <keiju@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-26 14:56:57 +0000
commit8494484dc0b1901d9ba49a31c6a6b3771b8942a2 (patch)
tree7b6d2b2d5b6dde5f51726ab3a6e9754fc524e926
parentd565cf7b43bf2d70444e003760ca1afa4544044d (diff)
downloadruby-8494484dc0b1901d9ba49a31c6a6b3771b8942a2.tar.gz
* 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
-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