Class: Rex::Proto::Thrift::ThriftBoolean
- Inherits:
-
BinData::Primitive
- Object
- BinData::Primitive
- Rex::Proto::Thrift::ThriftBoolean
- Defined in:
- lib/rex/proto/thrift.rb
Instance Method Summary collapse
Instance Method Details
#get ⇒ Object
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 |