From abae739e9e843bcb0e802d2705f2d1c12e55cb7e Mon Sep 17 00:00:00 2001 From: Alexey Vildyaev Date: Fri, 6 Dec 2013 14:02:12 +0300 Subject: [PATCH] Update README.md add Method `get_output_stream` in basic code --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 5137c5d..f2a86b7 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,7 @@ Zip::File.open(zipfile_name, Zip::File::CREATE) do |zipfile| # - The original file, including the path to find it zipfile.add(filename, folder + '/' + filename) end + zipfile.get_output_stream("myFile") { |os| os.write "myFile contains just this" } end ```