how .hash string method work ?

Posted by mgpyone on Stack Overflow See other posts from Stack Overflow or by mgpyone
Published on 2010-03-24T06:45:20Z Indexed on 2010/03/24 7:43 UTC
Read the original article Hit count: 289

Filed under:
|

I'm just a newbie to ruby. I've seen a string method (String).hash .

For example, in irb, I've tried

>> "mgpyone".hash

returns

=> 144611910

how does this method works ?

© Stack Overflow or respective owner

Related posts about ruby

Related posts about hash