1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/win32/lib/win32/registry.rb (Win32::Registry#values): added.

[Feature #7763] [ruby-core:51783]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2013-09-03 10:46:58 +00:00
parent afcabde71b
commit 1b126277ed
2 changed files with 16 additions and 1 deletions

View file

@ -569,6 +569,15 @@ For detail, see the MSDN[http://msdn.microsoft.com/library/en-us/sysinfo/base/pr
end
alias each each_value
#
# return values as an array
#
def values
vals_ary = []
each_value { |*, val| vals_ary << val }
vals_ary
end
#
# Enumerate subkeys.
#