From: "Laughlin, Joseph V" Date: 2004-07-29T11:04:55+09:00 Subject: Automatically setting attributes How can I do something like the following: class Foo attr_accessor :goo, :moo def initalize @attr.each { | attrib| attrib = 0 } end end In case it's not clear, I want to set all attributes of the Foo object to zero. But I can't seem to get the syntax for it correct. Thanks, Joe