Method: Aerospike::Unpacker#initialize
- Defined in:
- lib/aerospike/utils/unpacker.rb
#initialize ⇒ Unpacker
Returns a new instance of Unpacker.
46 47 48 49 50 51 |
# File 'lib/aerospike/utils/unpacker.rb', line 46 def initialize @unpacker = MessagePack::Unpacker.new MsgPackExt::TYPES.each do |type| @unpacker.register_type(type) { |data| MsgPackExt.new(type, data) } end end |