From: Abder-rahman Ali Date: 2010-07-13T05:30:45+09:00 Subject: Re: Substitution Ammar Ali wrote: > Maybe the loop and gsub are causing the confusion. If all you want to do > is > replace the value associated with the key, you can simple assign it: > > some_hash['Name'] = "New Name" > > Is that what you are trying to do? > > > On Mon, Jul 12, 2010 at 10:27 PM, Abder-rahman Ali < Jazak Allah Khayr Ammar for your reply. Maybe your solution is a thing I was thinking of. But, can you kindly tell me how the gsub! method is working on the example? -- Posted via http://www.ruby-forum.com/.