Class: Rex::Proto::ApacheJP::ApacheJPBoolean

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

Instance Method Summary collapse

Instance Method Details

#getObject



12
13
14
# File 'lib/rex/proto/apache_j_p.rb', line 12

def get
  self.data != 0
end

#set(v) ⇒ Object



16
17
18
# File 'lib/rex/proto/apache_j_p.rb', line 16

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