From: Tarun Yadav Date: 2010-05-15T19:45:41+09:00 Subject: Hash method in ruby Hello group, I have been working in java and ruby is new to me. While trying some hands on, I could not understand the Hashing done in ruby. I created a class A and called hash function on the class. 1> A.hash 2> A.new.hash While A.hash was giving same Fixnum every time, second statement generated different values. Question a. What is the difference between these two calls. b. In the second statement, because the state of A's object is same every time, I suppose it should return same values. -- Posted via http://www.ruby-forum.com/.