From: Charles Comstock Date: 2004-04-25T15:34:04+09:00 Subject: Re: A way to do automagical instantiation of variables for a specific type I just realized it would be really nice if OpenStruct had a way to set default values like this as well. I tried stuffing a hash into it that initalized like this, so that the openstruct would initialize like this as well, but it didn't work. OpenStruct does not currently take a block, would a default value for a field in an OpenStruct make sense? Also related, while it's understandable that OpenStruct tries to avoid having methods on it as much as possible so they remain open fields, it might be nice in some circumstances to be able to grab the internal hash that OpenStruct wraps around. Charles Comstock