Class: Windows::ServiceStructs::SERVICE_DELAYED_AUTO_START_INFO
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- Windows::ServiceStructs::SERVICE_DELAYED_AUTO_START_INFO
- Defined in:
- lib/win32/windows/structs.rb
Instance Method Summary collapse
-
#[]=(key, value) ⇒ Object
Intercept the accessor so that we can handle either true/false or 1/0.
- #aset ⇒ Object
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 |
#aset ⇒ Object
42 |
# File 'lib/win32/windows/structs.rb', line 42 alias aset []= |