Check whether a string contains all the characters of another string in Ruby
<p>Let's say I have a string, like <code>string= "aasmflathesorcerersnstonedksaottersapldrrysaahf"</code>. If you haven't noticed, you can find the phrase <code>"harry potter and the sorcerers stone"</code> in there (minus the space).</p>

<p>I need to check whether <code>string</code> contains all the elements of the string.</p>

<pre><code>string.include? ("sorcerer") #=&gt; true
string.include? ("harrypotterandtheasorcerersstone") #=&gt; false, even though it contains all the letters to spell harrypotterandthesorcerersstone
</code></pre>

<p>Include does not work on shuffled string. </p>

<p>How can I check if a string contains all the elements of another string?</p>