Class: Radiator::Type::Hash
- Inherits:
-
Serializer
- Object
- Serializer
- Radiator::Type::Hash
- Defined in:
- lib/radiator/type/hash.rb
Instance Method Summary collapse
-
#initialize(value) ⇒ Hash
constructor
A new instance of Hash.
- #to_bytes ⇒ Object
- #to_s ⇒ Object
Methods included from Utils
#debug, #error, #extract_signatures, #hexlify, #pakArr, #pakC, #pakHash, #pakI, #pakL!, #pakS, #pakStr, #pakc, #paks, #send_log, #unhexlify, #varint, #warning
Constructor Details
#initialize(value) ⇒ Hash
Returns a new instance of Hash.
4 5 6 |
# File 'lib/radiator/type/hash.rb', line 4 def initialize(value) super(:hash, true) end |
Instance Method Details
#to_bytes ⇒ Object
8 9 10 |
# File 'lib/radiator/type/hash.rb', line 8 def to_bytes pakHash(@value) end |
#to_s ⇒ Object
12 13 14 |
# File 'lib/radiator/type/hash.rb', line 12 def to_s @value.to_json end |