End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Win32::Registry#each
each
ext/win32/lib/win32/registry.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/ext/win32/lib/win32/registry.rb, line 566
def each_value
index = 0
while true
begin
subkey = API.EnumValue(@hkey, index)
rescue Error
break
end
subkey = export_string(subkey)
begin
type, data = read(subkey)
rescue Error
else
yield subkey, type, data
end
index += 1
end
index
end
Alias of #each_value
Enumerate values.