Levin Alexander wrote:
> David A. Black <dblack / wobblini.net> 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.