-
-
Save anonymous/be4dd2960709c8615954 to your computer and use it in GitHub Desktop.
Write array of arrays to TSV file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TypeError: no implicit conversion of String into Integer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
product_urls = [["food", "citrus", "lemon"], ["food", "citrus", "lime"]] | |
# write to TSV file | |
CSV.open("#{product_category[0]}-#{product_category[1]}.csv", "w", "\t") do |csv| | |
product_urls.each do |pu| | |
csv << pu | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment