Class: Msf::Util::DotNetDeserialization::Types::Primitives::Boolean
- Inherits:
-
BinData::Primitive
- Object
- BinData::Primitive
- Msf::Util::DotNetDeserialization::Types::Primitives::Boolean
- Defined in:
- lib/msf/util/dot_net_deserialization/types/primitives.rb
Overview
.NET Serialization Types (Primitives)
Instance Method Summary collapse
Instance Method Details
#get ⇒ Object
12 13 14 |
# File 'lib/msf/util/dot_net_deserialization/types/primitives.rb', line 12 def get self.val != 0 end |
#set(value) ⇒ Object
16 17 18 |
# File 'lib/msf/util/dot_net_deserialization/types/primitives.rb', line 16 def set(value) self.val = value ? 1 : 0 end |