[前][次][番号順一覧][スレッド一覧]

ruby-changes:26574

From: keiju <ko1@a...>
Date: Wed, 26 Dec 2012 23:57:54 +0900 (JST)
Subject: [ruby-changes:26574] keiju:r38625 (trunk): * lib/irb/context.rb: fix IRB::Inspector#keys_with_inspector [Bug #7598]

keiju	2012-12-26 23:56:57 +0900 (Wed, 26 Dec 2012)

  New Revision: 38625

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38625

  Log:
    * lib/irb/context.rb: fix IRB::Inspector#keys_with_inspector [Bug #7598]

  Modified files:
    trunk/ChangeLog
    trunk/lib/irb/inspector.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 38624)
+++ ChangeLog	(revision 38625)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Dec 26 23:55:18 2012  Keiju Ishitsuka  <keiju@i...>
+
+	* lib/irb/context.rb: fix IRB::Inspector#keys_with_inspector [Bug #7598]
+
 Wed Dec 26 23:26:15 2012  Keiju Ishitsuka  <keiju@i...>
 
 	* lib/irb/context.rb: IRB::Context#use_readline= has been obsolete
Index: lib/irb/inspector.rb
===================================================================
--- lib/irb/inspector.rb	(revision 38624)
+++ lib/irb/inspector.rb	(revision 38625)
@@ -51,7 +51,7 @@ module IRB # :nodoc: https://github.com/ruby/ruby/blob/trunk/lib/irb/inspector.rb#L51
     # 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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]