Class: IntBool
- Inherits:
-
BinData::Primitive
- Object
- BinData::Primitive
- IntBool
- Defined in:
- lib/bindata/itypes.rb
Instance Method Summary collapse
Instance Method Details
#get ⇒ Object
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 |