Skip to content

Instantly share code, notes, and snippets.

@ozzyaaron
Forked from anonymous/ShittyFuckingLoop.rb
Created August 4, 2010 09:01
Show Gist options
  • Save ozzyaaron/507867 to your computer and use it in GitHub Desktop.
Save ozzyaaron/507867 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>"]]
rows_array.select {|r| r[i].nil? }.each do |rr|
#rr[i] is rr now I think
end
return html
@ozzyaaron
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment