Class: Bool

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

Instance Method Summary collapse

Instance Method Details

#getObject



6
7
8
# File 'lib/bool.rb', line 6

def get
  bool == 1
end

#set(value) ⇒ Object



10
11
12
# File 'lib/bool.rb', line 10

def set(value)
  self.bool == value ? 1 : 0
end