Class: Rex::Proto::Thrift::DataType

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

Constant Summary collapse

T_STOP =
0
T_UTF7 =
11

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.name(value) ⇒ Object


10
11
12
# File 'lib/rex/proto/thrift.rb', line 10

def self.name(value)
  constants.select { |c| c.upcase == c }.find { |c| const_get(c) == value }
end

Instance Method Details

#to_symObject


14
15
16
# File 'lib/rex/proto/thrift.rb', line 14

def to_sym
  self.class.name(value)
end