From: Gavin Sinclair Date: 2002-12-29T18:55:01+09:00 Subject: Re: Hash question On Sunday, December 29, 2002, 8:49:19 PM, Gavin wrote: > Since you have a lot of keys and defaults, a nice approach is to put > all the default values into a separate hash, then do something like > this: > final_hash = given_hash.dup.update(defaults_hash) Sorry, that should be: final = defaults.dup.update(given) See KeywordArguments on the Wiki for some somewhat related code. Cheers, Gavin