Thank you.

But I think my problem is simpler than that. I didn't explain well 
enough.

I'm finding that with either each_pair or each_value, I can't get what I 
need.

here is a simple case:

h = {'x'=>2, 'y'=>5}

I want to change the values of the hash and assign those to new hash:

i = h.each_value {|v| v * 2}

I wanted i => {'x'=>4, 'y'=>10} but it remains i => {'x'=>2, 'y'=>5}

Is there some form of a 'collect' method for hashes - similar to array? 
There must be some other easy answer.

thank you!
-- 
Posted via http://www.ruby-forum.com/.