Skip to content

End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

Zlib::GzipReader#rewind

rewind

Resets the position of the file pointer to the point created the GzipReader object. The associated IO object needs to respond to the seek method.

See also #readpartial #tell #readlines #ungetbyte also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0