Class: Rex::Proto::Thrift::ThriftBoolean

Inherits:
BinData::Primitive
  • Object
show all
Defined in:
lib/rex/proto/thrift.rb

Instance Method Summary collapse

Instance Method Details

#getObject



36
37
38
# File 'lib/rex/proto/thrift.rb', line 36

def get
  self.val != 0
end

#set(v) ⇒ Object



40
41
42
# File 'lib/rex/proto/thrift.rb', line 40

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