From: Love U Ruby Date: 2013-04-11T23:27:25+09:00 Subject: Re: confusion with Struct class Why does every time the has value getting changed,while the instance variables values are not getting changed? Customer = Struct.new(:name, :address, :zip) joe = Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345) p joe.hash p joe.object_id #-93880937 #8577648 p joe.hash p joe.object_id #275982710 #8577648 p joe.hash p joe.object_id #767998854 #8577648 -- Posted via http://www.ruby-forum.com/.