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