From: ts Date: 2002-03-26T01:43:30+09:00 Subject: Re: Prototyping Dave's platform proposal (was: Windows version of Rub y) >>>>> "g" == george marrows writes: g> class Object g> # Returns the singleton class for self g> # FIXME Anyone know how to write this without using globals or similar? g> def singleton g> class << self g> $SINGLETON_CLASS = self g> end g> return $SINGLETON_CLASS g> end g> end class Object def singleton class << self self end end end Guy Decoux