title: How does ruby's String .hash method work?
body: <p>I'm just a newbie to ruby. I've seen a string method (String).hash . </p>
  
  <p>For example, in <code>irb</code>, I've tried </p>
  
  <pre><code>&gt;&gt; "mgpyone".hash
  </code></pre>
  
  <p>returns</p>
  
  <pre><code>=&gt; 144611910
  </code></pre>
  
  <p>how does this method works ?</p>