Imo, this is a result of global methods becoming methods on the Object
class. If they had been made singleton methods of the "main" object your
method_missing would work as you expect.


"Francis Hwang" <sera / fhwang.net> wrote in message
> Is there a way to prevent Object#send from dispatching to a global
> method? By which I mean:
>
> def something; end
>
> class SomeClass
>    def method_missing( sym, *args ) .... do magic; end
> end
>
> SomeClass.new.something # I'd like this to go to
> SomeClass#method_missing, not Kernel#something
>
> I can manage this other ways, but I'd love to use something like send,
> if possible.
>
> Francis Hwang
> http://fhwang.net/
>
>
>