Skip to content

Instantly share code, notes, and snippets.

@krokrob
Created January 7, 2016 10:32
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 krokrob/30ee5902dd949e2a40c8 to your computer and use it in GitHub Desktop.
Save krokrob/30ee5902dd949e2a40c8 to your computer and use it in GitHub Desktop.
profs = %w(cécile gab boris seb edward kevin)
profs.sort!
profs.each_with_index do |prof, index|
puts "#{index + 1}. #{prof.capitalize!}"
end
p profs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment