Class: Rex::Proto::Thrift::MessageType
- Inherits:
-
BinData::Uint16be
- Object
- BinData::Uint16be
- Rex::Proto::Thrift::MessageType
- Defined in:
- lib/rex/proto/thrift.rb
Constant Summary collapse
- CALL =
1
- REPLY =
2
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.name(value) ⇒ Object
25 26 27 |
# File 'lib/rex/proto/thrift.rb', line 25 def self.name(value) constants.select { |c| c.upcase == c }.find { |c| const_get(c) == value } end |
Instance Method Details
#to_sym ⇒ Object
29 30 31 |
# File 'lib/rex/proto/thrift.rb', line 29 def to_sym self.class.name(value) end |