Skip to content

Instantly share code, notes, and snippets.

@julioterra
Created October 3, 2011 05:45
Show Gist options
  • Select an option

  • Save julioterra/1258513 to your computer and use it in GitHub Desktop.

Select an option

Save julioterra/1258513 to your computer and use it in GitHub Desktop.
each iterator
my_array = [1, 2, 3, 4]
my_array.each {|cur_element| code block to run}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment