Skip to content

Instantly share code, notes, and snippets.

@budnik
Created July 1, 2015 05:00
Show Gist options
  • Save budnik/3649c90927bd0dc122ef to your computer and use it in GitHub Desktop.
Save budnik/3649c90927bd0dc122ef to your computer and use it in GitHub Desktop.
ar = [:a, :b, :c]
ar.each_with_index.each do |x,xi|
p ar[xi]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment