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

ruby-changes:30726

From: usa <ko1@a...>
Date: Tue, 3 Sep 2013 19:47:06 +0900 (JST)
Subject: [ruby-changes:30726] usa:r42805 (trunk): * ext/win32/lib/win32/registry.rb (Win32::Registry#values): added.

usa	2013-09-03 19:46:58 +0900 (Tue, 03 Sep 2013)

  New Revision: 42805

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

  Log:
    * ext/win32/lib/win32/registry.rb (Win32::Registry#values): added.
      [Feature #7763] [ruby-core:51783]

  Modified files:
    trunk/ChangeLog
    trunk/ext/win32/lib/win32/registry.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 42804)
+++ ChangeLog	(revision 42805)
@@ -1,6 +1,12 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Sep  3 19:44:40 2013  NAKAMURA Usaku  <usa@r...>
+
+	* ext/win32/lib/win32/registry.rb (Win32::Registry#values): added.
+	  [Feature #7763] [ruby-core:51783]
+
 Tue Sep  3 18:26:00 2013  Akinori MUSHA  <knu@i...>
 
-	* misc/inf-ruby.el (inf-ruby-keys, run-ruby): Add magic autoload comments.
+	* misc/inf-ruby.el (inf-ruby-keys, run-ruby): Add magic autoload
+	  comments.
 
 	* misc/rdoc-mode.el (rdoc-mode): Ditto.
 
Index: ext/win32/lib/win32/registry.rb
===================================================================
--- ext/win32/lib/win32/registry.rb	(revision 42804)
+++ ext/win32/lib/win32/registry.rb	(revision 42805)
@@ -570,6 +570,15 @@ For detail, see the MSDN[http://msdn.mic https://github.com/ruby/ruby/blob/trunk/ext/win32/lib/win32/registry.rb#L570
     alias each each_value
 
     #
+    # return values as an array
+    #
+    def values
+      vals_ary = []
+      each_value { |*, val| vals_ary << val }
+      vals_ary
+    end
+
+    #
     # Enumerate subkeys.
     #
     # subkey is String which contains name of subkey.

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

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