Skip to content

Instantly share code, notes, and snippets.

@slawosz
Created August 5, 2013 21:27
Show Gist options
  • Save slawosz/6159761 to your computer and use it in GitHub Desktop.
Save slawosz/6159761 to your computer and use it in GitHub Desktop.
array = [['Number', 'Name'], [1, 'Foo'], [2, 'Bar'], [3, 'Baz']]
array.each do |sub_array|
sub_array.each do |elem|
print elem
print ', '
end
print "\n"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment