From: "atraver@..." Date: 2006-09-28T02:05:09+09:00 Subject: Re: Accessing Nested Hashes Directly Thanks for all the responses. Here is the method I ended up with after looking over everything, just in case this topic is searched for in the future: def get_value(object, *path) for item in path break unless object object = object ? object[item.to_s] : nil end return object.kind_of?(String) ? object.strip : object end This might be a little more verbose than some of the solutions (also, Ross, your "inject" solution didn't seem to work out although I'm sure it would with some tweaking). However, it ends up doing exactly what I need it to do: get the value or return nil, in a quick-and-dirty way. -Adam