From e228be7943729ed85195b731a326952272ae0955 Mon Sep 17 00:00:00 2001 From: Kyle Banker Date: Wed, 2 Dec 2009 12:07:32 -0500 Subject: [PATCH] minor: added bytebuffer method to make apis compatible --- lib/mongo/util/byte_buffer.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/mongo/util/byte_buffer.rb b/lib/mongo/util/byte_buffer.rb index d927a9d..eea9b09 100644 --- a/lib/mongo/util/byte_buffer.rb +++ b/lib/mongo/util/byte_buffer.rb @@ -179,6 +179,10 @@ class ByteBuffer end end + def unpack(args) + to_a + end + def to_s if @buf.respond_to? :fast_pack @buf.fast_pack