From: Trans Date: 2005-08-31T02:51:23+09:00 Subject: Re: Method behaves differently when called using #send Levin Alexander wrote: > 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 :-) > > There could be a new method "explicit_receiver?" that is 'magic' in the > same way as "block_given?" That would be bad in that it would create "bifocal methods", ie. def x if explicit_receiver? # ... else # ... end end The appropriate way accomidate this functionality would be to put private methods in an independent namespace. T.