Skip to content

End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

Win32::Registry#[]=

[]=(name, rtype, value = nil)

Write value to a registry value named name.

If wtype is specified, the value type is it. Otherwise, the value type is depend on class of value: :Integer

Example
REG_DWORD

:String

Example
REG_SZ

:Array

Example
REG_MULTI_SZ
See also #[] #close .wtime2time #create also in 3.4 · 3.3 · 3.2 · 3.0