Method: Zlib::GzipReader#readlines
- Defined in:
- zlib.c
#readlines(*args) ⇒ Object
See Zlib::GzipReader documentation for a description.
4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 |
# File 'zlib.c', line 4515
static VALUE
rb_gzreader_readlines(int argc, VALUE *argv, VALUE obj)
{
VALUE str, dst;
dst = rb_ary_new();
while (!NIL_P(str = gzreader_gets(argc, argv, obj))) {
rb_ary_push(dst, str);
}
return dst;
}
|