class BinData::BoolBit1

Public Instance Methods

!() click to toggle source
# File lib/bindata_ext/bool.rb, line 26
def !
  !get
end
get() click to toggle source
# File lib/bindata_ext/bool.rb, line 18
def get
  (self._value || 0) > 0
end
set(value) click to toggle source
# File lib/bindata_ext/bool.rb, line 22
def set(value)
  self._value = value ? 1 : 0
end