Extended maintenance of Ruby versions 1.8.7 and 1.9.2 ended on July 31, 2014. Read more

In Files

  • dl/win32/lib/win32/registry.rb


Predefined Keys

Public Class Methods

new(hkey, keyname) click to toggle source
               # File dl/win32/lib/win32/registry.rb, line 182
def initialize(hkey, keyname)
  @hkey = hkey
  @parent = nil
  @keyname = keyname
  @disposition = REG_OPENED_EXISTING_KEY

Public Instance Methods

class() click to toggle source

Fake class method for Win32::Registry#open, Win32::Registry#create

               # File dl/win32/lib/win32/registry.rb, line 195
def class
close() click to toggle source

Predefined keys cannot be closed

               # File dl/win32/lib/win32/registry.rb, line 190
def close
  raise Error.new(5) ## ERROR_ACCESS_DENIED

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.