title: Check the characters inside two strings are the same in Ruby
body: <p>I have two strings, <code>a</code> and <code>b</code>, in Ruby.</p>
  
  <pre><code>a="scar"
  b="cars"
  </code></pre>
  
  <p>What is the easiest way in Ruby to find whether <code>a</code> and <code>b</code> contain the same characters? </p>
  
  <p><strong>UPDATE</strong><br>
  I am building an Anagram game ,so scar is an anagram of cars.So i want a way to compare a and b and come to conclusion that its an anagram<br>
  So <code>c="carcass"</code> should not be a match</p>