title: Ruby Write in CSV file by columns from arrays?
body: <p>I would like generate a csv file from severals arrays.
  This is my code:</p>
  
  <pre><code>require 'csv'
  CSV.open("csvfile.csv", "ab") do |csv|
  csv &lt;&lt; [array1]
  csv &lt;&lt; [array2]
  csv &lt;&lt; [array3]
  end
  </code></pre>
  
  <p>i need this output format:</p>
  
  <pre><code>array1,array2,array3
  array1,array2,array3
  array1,array2,array3
  array1,array2,array3
  array1,array2,array3
  </code></pre>
  
  <p>Thx for you help</p>