From: Joel VanderWerf Date: 2009-09-18T01:23:49+09:00 Subject: Re: block issues... Bertram Scharpf wrote: > But when using hashes I name the variable without concern: > > pets = {} > pets[ :dog] = "gluttonous" > > or > > pet = {} > pet[ :dog] = "gluttonous" IMO it depends on whether you are using the hash as an object with attributes (pet) or as an indexed collection (pets). Think about what names you would choose inside the || in this code: pets.each {|type, pet| ... } or pet.each {|attr, val| ... } -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407