title: How to see if a string ends with one of multiple characters
body: <p>I have this statement:</p>
  
  <pre><code>string_tokens[-1].ends_with?(",") || string_tokens[-1].ends_with?("-") || string_tokens[-1].ends_with?("&amp;")
  </code></pre>
  
  <p>I would like to put all the tokens (<code>","</code>, <code>"-"</code>, <code>"&amp;"</code>) into a constant and simplify the above to ask, "does the string end with any of these characters", but I'm not sure how to do that. </p>