From: "David A. Black" Date: 2005-08-31T00:05:00+09:00 Subject: Re: Method behaves differently when called using #send Hi -- On Wed, 31 Aug 2005, Peter Vanbroekhoven wrote: > On Tue, 30 Aug 2005, David A. Black wrote: > >> I see what you mean; it's very magic. I can't think of a way to >> implement it in Ruby, and even though someone will be able to with dl >> or whatever, it will still be too magic :-) > > Actually... Here's an implementation using the very thing that started this > thread: > > class Object > private :send > def method_missing(m, *args, &blk) I was trying to avoid method_missing, since there's only one to a customer, so to speak. But one could certainly do that too. David -- David A. Black dblack@wobblini.net