class GVariantBooleanType
Public Class Methods
new()
click to toggle source
Calls superclass method
GVariantBasicType::new
# File lib/gvariant.rb, line 79 def initialize super('b', 'C', 1, 1, false) end
Public Instance Methods
read(buf)
click to toggle source
Calls superclass method
GVariantBasicType#read
# File lib/gvariant.rb, line 83 def read(buf) b = super(buf) b != false && b != 0 end
write(value)
click to toggle source
Calls superclass method
GVariantBasicType#write
# File lib/gvariant.rb, line 88 def write(value) super((value != 0 && value != false && value != nil) ? 1: 0) end