diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | lib/irb/inspector.rb | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Wed Dec 26 23:55:18 2012 Keiju Ishitsuka <[email protected]> + + * lib/irb/context.rb: fix IRB::Inspector#keys_with_inspector [Bug #7598] + Wed Dec 26 23:26:15 2012 Keiju Ishitsuka <[email protected]> * 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 |