From: Robert Dober Date: 2008-09-07T18:24:00+09:00 Subject: Re: Extend OpenStruct's functionality with explicit default value Sorry forgot: and implement defaulted also as a self returning instance method to allow for this: OpenStruct::new( :a => 42).defaulted( :a => 42 )