From: Lars Westergren Date: 2007-07-25T23:05:18+09:00 Subject: Re: Detecting singletons Robert Dober skrev: > On 7/25/07, Lars Westergren wrote: > well seems you have to use my code then, it depends on a "feature" > Matz has put deliberately into the implementation of ancestor, > singletons are not included. > Does this fit your definition of singleton? Not sure.... Your code works good in irb and catches singletons created as class << self;self;end; there. However, I still got the bug in Rails. I have done this- marsh = class << Marshal; self; end marsh.send :alias_method, "old_dump", "dump" marsh.class_eval<