title: In Ruby, how do I find out if a string is not in an array?
body: <p>In Ruby, how would I return true if a string is not in an array of options?</p>
  
  <pre><code># pseudo code
  do_this if current_subdomain not_in ["www", "blog", "foo", "bar"]
  </code></pre>
  
  <p>...or do you know of a better way to write this?</p>