@@ -411,7 +411,7 @@ def update
411411 end
412412
413413 ##
414- # Download the file's contents to a local file or an IO instance .
414+ # Download the file's contents to a local file or an File-like object .
415415 #
416416 # By default, the download is verified by calculating the MD5 digest.
417417 #
@@ -420,11 +420,12 @@ def update
420420 # was used with {Bucket#create_file}, the `encryption_key` option must
421421 # be provided.
422422 #
423- # @param [String, IO] path The path on the local file system to write
424- # the data to. The path provided must be writable. Can also be an IO
425- # object, or IO-ish object like StringIO. If an IO object, the object
426- # will be written to, not the filesystem. If omitted, a new StringIO
427- # instance will be written to and returned. Optional.
423+ # @param [String, ::File] path The path on the local file system to
424+ # write the data to. The path provided must be writable. Can also be
425+ # an File object, or File-like object such as StringIO. If an file
426+ # object, the object will be written to, not the filesystem. If
427+ # omitted, a new StringIO instance will be written to and returned.
428+ # Optional.
428429 # @param [Symbol] verify The verification algorithm used to ensure the
429430 # downloaded file contents are correct. Default is `:md5`.
430431 #
@@ -446,11 +447,11 @@ def update
446447 # not performed in the Storage service. (See [Transcoding of
447448 # gzip-compressed files](https://cloud.google.com/storage/docs/transcoding))
448449 #
449- # @return [IO ] Returns an IO object representing the file data. This
450- # will ordinarily be a `::File` object referencing the local file
451- # system. However, if the argument to `path` is `nil`, a StringIO
452- # instance will be returned. If the argument to `path` is an IO
453- # object, then that object will be returned.
450+ # @return [::File, StringIO ] Returns a file object representing the file
451+ # data. This will ordinarily be a `::File` object referencing the
452+ # local file system. However, if the argument to `path` is `nil`, a
453+ # StringIO instance will be returned. If the argument to `path` is an
454+ # File-like object, then that object will be returned.
454455 #
455456 # @example
456457 # require "google/cloud/storage"
0 commit comments