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