diff options
| author | frsyuki <frsyuki@users.sourceforge.jp> | 2010-05-25 02:55:58 +0900 |
|---|---|---|
| committer | frsyuki <frsyuki@users.sourceforge.jp> | 2010-05-25 02:55:58 +0900 |
| commit | dbebe9771b276bd286b2ccdb8ac88dd17a83524c (patch) | |
| tree | a608b5956cdf34a6926993284ca856ab9bf922b0 /ruby/unpack.c | |
| parent | d0af8aa9f11bfd9c6ded625f5591db25d42153ad (diff) | |
| download | msgpack-python-dbebe9771b276bd286b2ccdb8ac88dd17a83524c.tar.gz | |
ruby: update rdoc
Diffstat (limited to 'ruby/unpack.c')
| -rw-r--r-- | ruby/unpack.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ruby/unpack.c b/ruby/unpack.c index 9a2c457..dec40c6 100644 --- a/ruby/unpack.c +++ b/ruby/unpack.c @@ -654,7 +654,7 @@ void Init_msgpack_unpack(VALUE mMessagePack) * Following code uses Buffered API with an input stream: * * # create an unpacker with input stream. - * pac = MessagePack::Unpacker.new(stdin) + * pac = MessagePack::Unpacker.new(STDIN) * * # deserialize object one after another. * pac.each {|obj| @@ -663,8 +663,8 @@ void Init_msgpack_unpack(VALUE mMessagePack) * * * Following code doesn't use the input stream and feeds buffer - * using *fill* method. This is useful to use special stream - * or with event-driven I/O library. + * manually. This is useful to use special stream or with + * event-driven I/O library. * * # create an unpacker without input stream. * pac = MessagePack::Unpacker.new() @@ -677,6 +677,7 @@ void Init_msgpack_unpack(VALUE mMessagePack) * # ... * } * + * * You can manage the buffer manually with the combination of * *execute*, *finished?*, *data* and *reset* method. * |
