Update README.md

add Method `get_output_stream` in basic code
This commit is contained in:
Alexey Vildyaev 2013-12-06 14:02:12 +03:00
parent 74932213da
commit abae739e9e
1 changed files with 1 additions and 0 deletions

View File

@ -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
```