Class: IntBool

Inherits:
BinData::Primitive
  • Object
show all
Defined in:
lib/bindata/itypes.rb

Direct Known Subclasses

Bool24, Bool8

Instance Method Summary collapse

Instance Method Details

#getObject



4
# File 'lib/bindata/itypes.rb', line 4

def get;   self.int==0 ? false : true ; end

#set(v) ⇒ Object



5
# File 'lib/bindata/itypes.rb', line 5

def set(v) self.int = v ? 1 : 0 ; end