From: Igor Nn Date: 2011-05-28T05:12:37+09:00 Subject: Re: Hash .each and different action for each key Thank you for the response. I was able to get the following to work after reading up more on the case statement (Was omitting the "when" :) def test_case(choices) choices.each_pair do |k, v| case k when :a puts "This is a" when :b puts "This is b" when :c puts "This is c" end end end Thank you for your help. -- Posted via http://www.ruby-forum.com/.