Class: Hash

Inherits:
Object show all
Defined in:
lib/gri/blank.rb,
lib/gri/mmsgpack.rb

Instance Method Summary collapse

Instance Method Details

#to_msgpackObject



47
48
49
50
# File 'lib/gri/mmsgpack.rb', line 47

def to_msgpack
  "\xde" + [self.size].pack('n') +
    self.map {|k, v| k.to_msgpack + v.to_msgpack}.join('')
end