diff options
author | Paul Duncan <pabs@pablotron.org> | 2016-08-10 21:16:44 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2016-08-10 21:16:44 -0400 |
commit | 055abed0e28681387377671bc16d40d075e3aaf7 (patch) | |
tree | fb038fde87156a164ba7ce64f80dffa0494286f7 /Zip/Extra.html | |
parent | 25199ab4c29057d7c0a73812fc8f2ac3605c1d86 (diff) | |
download | zip-crystal-055abed0e28681387377671bc16d40d075e3aaf7.tar.bz2 zip-crystal-055abed0e28681387377671bc16d40d075e3aaf7.zip |
update documentation
Diffstat (limited to 'Zip/Extra.html')
-rw-r--r-- | Zip/Extra.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Zip/Extra.html b/Zip/Extra.html index cb489df..3ea15f3 100644 --- a/Zip/Extra.html +++ b/Zip/Extra.html @@ -121,11 +121,11 @@ <p>Example:</p> -<p># open "foo.zip" -Zip.read("foo.zip") do |zip| -# get extra data associated with "bar.txt" -extras = zip["bar.txt"].extras -end</p> +<pre><code><span class="c"># open "foo.zip"</span> +<span class="t">Zip</span>.read(<span class="s">"foo.zip"</span>) <span class="k">do</span> <span class="o">|</span>zip<span class="o">|</span> + <span class="c"># get extra data associated with "bar.txt"</span> + extras <span class="o">=</span> zip[<span class="s">"bar.txt"</span>].extras +<span class="k">end</span></code></pre> |