Class: Msf::Util::DotNetDeserialization::Types::Primitives::Boolean

Inherits:
BinData::Primitive
  • Object
show all
Defined in:
lib/msf/util/dot_net_deserialization/types/primitives.rb

Overview

.NET Serialization Types (Primitives)

Instance Method Summary collapse

Instance Method Details

#getObject



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