I am taking this away from ruby-talk as it contains
patches.
By looking at rb_mod_ancestor in class.c one can see that
the
singleton class is *explicitly not included* into the
ancestor list.
Therefore this is done for a purpose(1), I'd love to know
more about it.
As I am curious I just recompiled 1.8.6 with the
class.c.patch-incl-ancestor-for-singletons patch, and it did
what I
wanted at first sight, as I have already done it for fun I
have
included the patch anyway [a monster patch be warned ;)].
If you do not want this patch, which is very likely, maybe
you want
the other, even bigger I am afraid;).
Cheers
Robert
(1) Kindly indicated by Rick too.
--
You see things; and you say Why?
But I dream things that never were; and I say Why not?
-- George Bernard Shaw
|