Class: Array

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

Instance Method Summary collapse

Instance Method Details

#to_msgpackObject



40
41
42
43
# File 'lib/gri/mmsgpack.rb', line 40

def to_msgpack
  "\xdc" + [self.size].pack('n') +
    self.map {|e| e.to_msgpack}.join('')
end