Class: Radiator::Type::Future
- Inherits:
-
Serializer
- Object
- Serializer
- Radiator::Type::Future
- Defined in:
- lib/radiator/type/future.rb
Overview
Instance Method Summary collapse
-
#initialize(value) ⇒ Future
constructor
A new instance of Future.
- #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) ⇒ Future
Returns a new instance of Future.
6 7 8 |
# File 'lib/radiator/type/future.rb', line 6 def initialize(value) super(:future, true) end |
Instance Method Details
#to_bytes ⇒ Object
10 11 12 |
# File 'lib/radiator/type/future.rb', line 10 def to_bytes [1].pack('U') end |
#to_s ⇒ Object
14 15 |
# File 'lib/radiator/type/future.rb', line 14 def to_s end |