From: "ara.t.howard" Date: 2008-09-06T00:00:09+09:00 Subject: Re: Extend OpenStruct's functionality with explicit default value On Sep 5, 2008, at 5:54 AM, Robert Klemme wrote: > counters = OpenStruct.new > ... > counters.foo ||= 0 > counters.foo += 1 > > For obvious reasons I'd like to get rid of the initialization. why not simply o = OpenStruct.new :foo => 0 ?? a @ http://codeforpeople.com/ -- we can deny everything, except that we have the possibility of being better. simply reflect on that. h.h. the 14th dalai lama