From: "Peña, Botp" Date: 2008-09-06T10:51:01+09:00 Subject: Re: Extend OpenStruct's functionality with explicit default value From: ara.t.howard [mailto:ara.t.howard@gmail.com] # why not simply # # o = OpenStruct.new :foo => 0 because that would mean knowing in advanced the vars and mentioning them, wc loses the dynamism of ostruct compare to o = OpenStruct.new(0) unknown/new attribs will be initialized to 0 as compared to default nil kind regards -botp