From: Sebastian Hungerecker Date: 2008-05-28T04:13:02+09:00 Subject: Re: Can someone explain this syntax in new? Robb Shecter wrote: > people = Hash.new{ |me,key| me[ key ] = {} } > [...] > Is this overwriting new()? No, it calls new and passes the above block to it. The block will then be stored and executed every time a key is accessed that does not exist (with the hash object and the requested key as arguments). HTH, Sebastian -- Jabber: sepp2k@jabber.org ICQ: 205544826