title: How can I do this inside the each_char?
body: <p>I have this:</p>
  
  <pre><code>sentence.each_char {|char|
     ......
     ......
  }
  </code></pre>
  
  <p>I want this:</p>
  
  <pre><code>sentence.each_char {|char|
     if (char is the last char)
       ......
     end
  }
  </code></pre>
  
  <p>Does anybody know how I can do that?</p>