From: Damjan Rems Date: 2008-05-06T15:42:25+09:00 Subject: Re: Hash question Here is what I have done: class Hash def select_as_hash(*args) h = {} args.each {|k| h[k]=self[k] unless self[k].nil? } h end end by TheR -- Posted via http://www.ruby-forum.com/.