title: rubyzip coaching
body: <pre><code>    Zip::ZipOutputStream.open(folderpath) do |z|
          z.print IO.read(folderpath)
  </code></pre>
  
  <p>In the code above, I have <code>Zip::ZipOutputStream.open(file_path) do |z|</code>. I do not understand, what the do <code>|z|</code> mean? What does |z| refer to? Can I for example change |z| to other, example is |changez| ?</p>
  
  <p>I got the complete code here 
  <a href="http://blog.devinterface.com/2010/02/create-zip-files-on-the-fly/" rel="nofollow">http://blog.devinterface.com/2010/02/create-zip-files-on-the-fly/</a> but I can not undestand the 1st line of do |z| .</p>