From: Robert Dober Date: 2007-08-03T03:42:34+09:00 Subject: Re: #send in 1.9 On 8/2/07, Pit Capitain wrote: > 2007/8/2, dblack@rubypal.com : > > In fact, the problem for me is that the names don't tell you what's > > happening; you just have to know. For that reason, I would like to > > see simply send/send! (and __send/__send!). But I think I lost that > > argument a long time ago. > > FWIW, I also think these would be the most Rubyish names. Please, > Matz, reconsider David's proposal! > > --- > > To Tom and others using #send to call private methods: if the method > name is known, then you should immediately change > > obj.send("method", *args) > > to > > obj.instance_eval { method(*args) } In that case you should change even if the method name is unknown obj.instance_eval { send( method, *args) } Thx for the tip however. > Robert -- [...] as simple as possible, but no simpler. -- Attributed to Albert Einstein