Class: Fzeet::Windows::PROPVARIANT
- Inherits:
-
FFI::Union
- Object
- FFI::Union
- Fzeet::Windows::PROPVARIANT
- Includes:
- AnonymousSupport
- Defined in:
- lib/fzeet/windows/ole.rb
Class Method Summary collapse
Instance Method Summary collapse
- #bool ⇒ Object
- #bool=(bool) ⇒ Object
- #int ⇒ Object
- #int=(int) ⇒ Object
- #uint ⇒ Object
- #uint=(uint) ⇒ Object
Methods included from AnonymousSupport
Class Method Details
.[](t, *v) ⇒ Object
239 |
# File 'lib/fzeet/windows/ole.rb', line 239 def self.[](t, *v) new.tap { |var| var.send("#{t}=", *v) } end |
Instance Method Details
#bool ⇒ Object
241 |
# File 'lib/fzeet/windows/ole.rb', line 241 def bool; raise 'Wrong type tag.' unless self[:vt] == VT_BOOL; self[:boolVal] != 0 end |
#bool=(bool) ⇒ Object
242 |
# File 'lib/fzeet/windows/ole.rb', line 242 def bool=(bool) self[:vt] = VT_BOOL; self[:boolVal] = (bool) ? -1 : 0 end |
#int ⇒ Object
244 |
# File 'lib/fzeet/windows/ole.rb', line 244 def int; raise 'Wrong type tag.' unless self[:vt] == VT_I4; self[:intVal] end |
#int=(int) ⇒ Object
245 |
# File 'lib/fzeet/windows/ole.rb', line 245 def int=(int) self[:vt] = VT_I4; self[:intVal] = int end |
#uint ⇒ Object
247 |
# File 'lib/fzeet/windows/ole.rb', line 247 def uint; raise 'Wrong type tag.' unless self[:vt] == VT_UI4; self[:uintVal] end |
#uint=(uint) ⇒ Object
248 |
# File 'lib/fzeet/windows/ole.rb', line 248 def uint=(uint) self[:vt] = VT_UI4; self[:uintVal] = uint end |