title: Ruby value of a hash key?
body: <p>I've got a list of values that are in a Ruby hash.  Is there a way to check the value of the key and if it equals "X", then do "Y"?</p>
  
  <p>I can test to see if the hash has a key using <code>hash.has_key?</code>, but now I need to know <code>if hash.key == "X" then...</code>?</p>