From d64ce278f01cafc1c3c23aec9bb2394412ad160b Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Thu, 11 Aug 2016 00:30:34 -0400 Subject: update documentation --- Zip/Writer.html | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 61 insertions(+), 2 deletions(-) (limited to 'Zip/Writer.html') diff --git a/Zip/Writer.html b/Zip/Writer.html index 894055d..0b4a935 100644 --- a/Zip/Writer.html +++ b/Zip/Writer.html @@ -85,8 +85,28 @@ -
  • - WriterEntry +
  • + Writers + + +
  • @@ -112,6 +132,13 @@ +

    Overview

    + +

    Zip file writer.

    + +

    You shouldn't need to instantiate this class directly; use +Zip.write() instead.

    + @@ -163,6 +190,13 @@ +
  • + #add_dir(path : String, time : Time = Time.now, comment : String = "") : UInt32 + +

    Add empty directory to archive as path and return number of bytes written.

    + +
  • +
  • #add_file(path : String, file_path : String, method : CompressionMethod = CompressionMethod::DEFLATE, time : Time = Time.now, comment : String = "") : UInt32 @@ -295,6 +329,31 @@ written.

    +
    +
    + + def add_dir(path : String, time : Time = Time.now, comment : String = "") : UInt32 + + # +
    + +

    Add empty directory to archive as path and return number of +bytes written.

    + +

    Example:

    + +
    # write to "foo.zip"
    +Zip.write("foo.zip") do |zip|
    +  # add a directory named "example-dir"
    +  zip.add_dir("example-dir")
    +end
    + +
    +
    + +
    +
    +
    -- cgit v1.2.3