title: Check if string contains any substring in an array in Ruby
body: <p>I am using the <strong>Tmail library</strong>, and for each attachment in an email, when I do <code>attachment.content_type</code>, sometimes I get not just the content type but also the name. Examples:</p>
  
  <pre><code>image/jpeg; name=example3.jpg
  
  image/jpeg; name=example.jpg
  
  image/jpeg; name=photo.JPG
  
  image/png
  </code></pre>
  
  <p>I have an array of valid content types like this:</p>
  
  <pre><code>VALID_CONTENT_TYPES = ['image/jpeg']
  </code></pre>
  
  <p>I would like to be able to check if the content type is included in any of the valid content types array elements.</p>
  
  <p>What would be the best way of doing so in Ruby?</p>