Ruby cada char con índice

length = sentence.length
sentence.each_char.with_index(1){|char, i|
  if i == length
    ...
  end
  
Terrible Turkey