ruby: rdoc

This commit is contained in:
frsyuki
2010-05-23 21:10:49 +09:00
parent f8173e93f5
commit d0af8aa9f1
3 changed files with 370 additions and 18 deletions

View File

@@ -20,6 +20,18 @@
static VALUE mMessagePack;
/**
* Document-module: MessagePack
*
* MessagePack is a binary-based efficient object serialization library.
* It enables to exchange structured objects between many languages like JSON.
* But unlike JSON, it is very fast and small.
*
* require 'msgpack'
* msg = [1,2,3].to_msgpack #=> "\x93\x01\x02\x03"
* MessagePack.unpack(msg) #=> [1,2,3]
*
*/
void Init_msgpack(void)
{
mMessagePack = rb_define_module("MessagePack");