minor: added bytebuffer method to make apis compatible

This commit is contained in:
Kyle Banker 2009-12-02 12:07:32 -05:00
parent 992f6c30dc
commit e228be7943
1 changed files with 4 additions and 0 deletions

View File

@ -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