From: Julian Leviston Date: 2013-04-12T00:27:31+09:00 Subject: Re: confusion with Struct class The way you're teaching yourself ruby isn't good. It's better to have an intention... a real world use... for example, try to build yourself a text based adventure game... don't just go through all the methods and ask us what they do. You won't learn very well that way, and nothing will stick in your mind. Julian On 12/04/2013, at 1:14 AM, Love U Ruby wrote: > Robert Klemme wrote in post #1105270: >> On Thu, Apr 11, 2013 at 4:59 PM, Love U Ruby >> wrote: >> > 1060632465 >>> p joe.hash >>> -672312861 >>> 8577108 >>> -672312861 >>> 8577108 > >> That output doesn't fit the program. Where do lines with "8577108" come >> from? > > > That was a typo. Actually I used in the code `Object_id`. those numbers > are object_id of `Joe`. But during copy -paste I forgot to remove those > numbers. Sorry for that. > > Could you give me a valid example? on the below - > > eql?(other) → true or false > > http://www.ruby-doc.org/core-2.0/Struct.html#method-i-eql-3F > > -- > Posted via http://www.ruby-forum.com/.