Loops through Array of Arrays

PHOTO EMBED

Sun May 30 2021 15:25:03 GMT+0000 (UTC)

Saved by @decosta1228

s = [["ham", "swiss"], ["turkey", "cheddar"], ["roast beef", "gruyere"]]

s.each { |sub_array| sub_array.each { |element| puts element }}
content_copyCOPY