From: Paul Mckibbin Date: 2009-04-22T05:36:16+09:00 Subject: Re: Is there a better way to do this? matt neuburg wrote: > I would have thought that key? is the basic form here. absolutely right. I'd forgotten about that method. > > Also, just a thought, you might look at ostruct which plays off the very > same impulse you're having (i.e. to talk to hash as if it were a struct > with accessors). The code might give you some ideas... > thanks matt, I'll take a look > m. -- Posted via http://www.ruby-forum.com/.