-static VALUE
-stream_serialize (VALUE self)
-{
- VALUE ret;
- struct RArray *stream;
- long i;
-
- ret = rb_str_new2 ("");
-
- stream = RARRAY (self);
- if (!stream->len)
- return ret;
-
- for (i = 0; i < stream->len; i++) {
- VALUE str = rb_funcall (stream->ptr[i], id_serialize, 0, NULL);
-
- rb_str_append (ret, str);
- }
-
- return ret;
-}
-