title: How to add data from array of array into cell using Ruby Spreadsheet gem
body: <p>I have an array of arrays like:</p>
  
  <pre><code>arr_all = [arr_1, arr_2, arr_3, arr_r]
  </code></pre>
  
  <p>where:</p>
  
  <pre><code>arr_1 = [2015-08-19 17:30:24 -0700, 2015-08-19 17:30:34 -0700, 2015-08-19 17:30:55 -0700]
  arr_2 = ...
  arr_3 = ...
  </code></pre>
  
  <p>I have a file to modify. I know how to add an array as a row, but I need help to insert each of the arrays in <code>@@ar_data</code> as columns. I find the <code>Row</code> to insert the data, and then I want to insert <code>arr_1</code> in the cell <code>(next_empty_row, B)</code>, then <code>arr_2</code> at <code>(next_empty_row, C)</code>, etc. Please advice. The Number of rows to fill the data is the size of each array. <code>arr_1</code>, <code>arr_2</code>, <code>arr_3</code> are of size <code>3</code>.</p>
  
  <pre><code>def performance_report
    Spreadsheet.client_encoding = 'UTF-8'
    f = "PerformanceTest_S.xls"
    if File.exist? (f)
      # Open the previously created Workbook
      book = Spreadsheet.open(f)
      sheet_1_row_index = book.worksheet(0).last_row_index + 1
      sheet_2_row_index = book.worksheet(1).last_row_index + 1
      # Indicate the row index to the user
      print "Inserting new row at index: #{sheet_2_row_index}\n"
      # Insert array as column - I need help with the below code to insert data in arr_data which is array of arrays. 
      column = 1
      row
      @@ar_data.each do |time|
        len = time.size
        book.worksheet(0).cell(sheet_1_row_index, )
        book.worksheet(0).Column.size
      end
      # This insert row is for worksheet 2 and works fine.
      book.worksheet(1).insert_row(sheet_2_row_index, @@ar_calc)
      # Delete the file so that it can be re-written
      File.delete(f)
      # puts @@ar_calc
      # Write out the Workbook again
      book.write(f)
  </code></pre>