Skip to content

Instantly share code, notes, and snippets.

@rodreegez
Created October 20, 2011 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rodreegez/1301226 to your computer and use it in GitHub Desktop.
Save rodreegez/1301226 to your computer and use it in GitHub Desktop.
# my_array is an array of arrays
if my_array.any?
my_array.each do |my_sub_array|
if my_sub_array.any?
my_sub_array.each do |my_thing|
my_thing.do_something
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment