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#created?
created?
ext/win32/lib/win32/registry.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/ext/win32/lib/win32/registry.rb, line 504
def created?
@disposition == REG_CREATED_NEW_KEY
end
Returns if key is created ((newly)). (see Registry.create) – basically you call create then when you call created? on the instance returned it will tell if it was successful or not