stdlib/zlib/0/gzip_reader.rbs in rbs-3.5.3 vs stdlib/zlib/0/gzip_reader.rbs in rbs-3.6.0.dev.1
- old
+ new
@@ -120,18 +120,22 @@
# The rest of the methods are adequately described in their own documentation.
#
class GzipReader < Zlib::GzipFile
include Enumerable[String]
+ def self.wrap: (IO io) -> instance
+ | (IO io) { (instance gz) -> void } -> void
+
# <!--
# rdoc-file=ext/zlib/zlib.c
# - Zlib::GzipReader.open(filename) {|gz| ... }
# -->
# Opens a file specified by `filename` as a gzipped file, and returns a
# GzipReader object associated with that file. Further details of this method
# are in Zlib::GzipReader.new and ZLib::GzipFile.wrap.
#
- def self.open: (String filename) { (instance gz) -> void } -> instance
+ def self.open: (String | _ToPath filename) -> instance
+ | (String | _ToPath filename) { (instance gz) -> void } -> void
# <!--
# rdoc-file=ext/zlib/zlib.c
# - Zlib::GzipReader.zcat(io, options = {}, &block) => nil
# - Zlib::GzipReader.zcat(io, options = {}) => string