From 055abed0e28681387377671bc16d40d075e3aaf7 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Wed, 10 Aug 2016 21:16:44 -0400 Subject: update documentation --- Zip/Archive.html | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'Zip/Archive.html') diff --git a/Zip/Archive.html b/Zip/Archive.html index ea6e914..332b0f1 100644 --- a/Zip/Archive.html +++ b/Zip/Archive.html @@ -298,9 +298,9 @@

Example:

-

# get bar.txt and read it into memory io -io = MemoryIO.new -zip["bar.txt"].read(io)

+
# get bar.txt and read it into memory io
+io = MemoryIO.new
+zip["bar.txt"].read(io)

@@ -320,9 +320,9 @@ zip["bar.txt"].read(io)

Example:

-

# read third entry from archive into memory io -io = MemoryIO.new -zip[2].read(io)

+
# read third entry from archive into memory io
+io = MemoryIO.new
+zip[2].read(io)

@@ -342,11 +342,11 @@ zip[2].read(io)

Example:

-

# read third entry from archive into memory io -if e = zip[2] -io = MemoryIO.new -e.read(io) -end

+
# read third entry from archive into memory io
+if e = zip[2]?
+  io = MemoryIO.new
+  e.read(io)
+end

@@ -366,11 +366,11 @@ end

Example:

-

# read bar.txt into memory io if it exists -if e = zip["bar.txt"]? -io = MemoryIO.new -e.read(io) -end

+
# read bar.txt into memory io if it exists
+if e = zip["bar.txt"]?
+  io = MemoryIO.new
+  e.read(io)
+end

-- cgit v1.2.3