From: ara.t.howard@... Date: 2006-08-10T23:02:14+09:00 Subject: Re: hash key to var name of value hash key value On Thu, 10 Aug 2006, [ISO-8859-1] Une b�vue wrote: > > i'd like to now if their is a simpler way to do that : > > IN_NEWS=@h['IN_NEWS'] > > because here i do have to know their is a key of name "IN_NEWS" > > want i want is to affet the value of all the @h['key_name'] to the > variable key_name ??? > > (as far as i remember well it's possible in php then i think this is > also possible in ruby )))) define_method('key_name'){ @h['key_name' } -a -- to foster inner awareness, introspection, and reasoning is more efficient than meditation and prayer. - h.h. the 14th dali lama