Skip to content

Instantly share code, notes, and snippets.

@rubydubee
Created June 30, 2011 21:44
Show Gist options
  • Save rubydubee/1057339 to your computer and use it in GitHub Desktop.
Save rubydubee/1057339 to your computer and use it in GitHub Desktop.
Array Indexes
['a','b','c'].each_with_index do |item,index|
puts "At Position #{index} : #{item}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment