[ruby] Finding out current index in EACH loop (Ruby)