Skip to content

Instantly share code, notes, and snippets.

Created August 4, 2010 08:19
Show Gist options
  • Save anonymous/507837 to your computer and use it in GitHub Desktop.
Save anonymous/507837 to your computer and use it in GitHub Desktop.
i = 0
html = ""
rows_array = rows.map {|r| PdfUtilities.separate_rows r}
# rows_array will be something like:
# [["<td>one</td>", "<td>two</td>"], ["<td>three</td>"]]
while rows_array.collect {|r| r[i].nil?}.include? false
rows_array.each do |rr|
# Do something with rr[i] here
end
i += 1
end
return html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment