Class: Windows::ServiceStructs::SERVICE_DELAYED_AUTO_START_INFO

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/win32/windows/structs.rb

Instance Method Summary collapse

Instance Method Details

#[]=(key, value) ⇒ Object

Intercept the accessor so that we can handle either true/false or 1/0. Since there is only one member, there’s no need to check the key name.



47
48
49
# File 'lib/win32/windows/structs.rb', line 47

def []=(key, value)
  [0, false].include?(value) ? aset(key, 0) : aset(key, 1)
end

#asetObject



42
# File 'lib/win32/windows/structs.rb', line 42

alias aset []=