Method: Zlib::GzipReader#gets
- Defined in:
- zlib.c
#gets(*args) ⇒ Object
See Zlib::GzipReader documentation for a description. However, note that this method can return nil even if #eof? returns false, unlike the behavior of File#gets.
4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 |
# File 'zlib.c', line 4465 static VALUE rb_gzreader_gets(int argc, VALUE *argv, VALUE obj) { VALUE dst; dst = gzreader_gets(argc, argv, obj); if (!NIL_P(dst)) { rb_lastline_set(dst); } return dst; } |