From: "RadosÅ‚aw BuÅ‚at" Date: 2008-03-28T07:35:14+09:00 Subject: Re: instance_variable_[gs]et On Thu, Mar 27, 2008 at 4:28 PM, Trans wrote: > I don't quite get matz take. How is > > > variables.each do |key, value| > instance_variable_set("@#{key}", value) > end > > cleaner than > > instance_variable_set(variables) It won't but he didn't say that. And Florian Gilcher showed you that you can write your own method that do it for you. I don't think that Ruby should have built-in such a method. Using instance_variable_[sg]et should be very rare (for example in metaprogramming) and using such a loop even more. -- Rados³aw Bu³at http://radarek.jogger.pl - mój blog