Class: BinData::Bool
- Inherits:
-
Primitive
- Object
- Primitive
- BinData::Bool
- Defined in:
- lib/bindata-contrib/bool.rb
Instance Method Summary collapse
Instance Method Details
#get ⇒ Object
7 8 9 |
# File 'lib/bindata-contrib/bool.rb', line 7 def get bool == 1 end |
#set(value) ⇒ Object
11 12 13 |
# File 'lib/bindata-contrib/bool.rb', line 11 def set(value) self.bool = value ? 1 : 0 end |