From: Tim Pease Date: 2008-05-13T23:57:12+09:00 Subject: Re: Updating all values in a Hash On May 13, 2008, at 8:20 AM, Paul Dugdale wrote: > Does anyone know a good way to update all values in a hash. > > E.g. If I have a big hash with each element containing a string as a > value, how can I make each string lower-case? h = {1 => 'ONE', 2 => 'TWO'} h.each {|k,v| v.downcase!} This assumes that all your values really are strings. You'll get some errors if any of the values do not have a downcase! methd. Blessings, TwP