From: Daniel Sheppard Date: 2005-11-24T11:17:48+09:00 Subject: Re: A question about metaclass > My question is where the C.new method is. > The class Class or C's singleton class? > > According to PickAxe2, it seems that C.new is in Class. > However, according to Little Ruby book, it seems that C.new > is in C's metaclass. class C end C.new #executed new from Class class C def new(arg) p "ARGGGHHH!! #{arg}" super.new end end C.new #executed new from C's metaclass/singleton class/eigenclass. ##################################################################################### This email has been scanned by MailMarshal, an email content filter. #####################################################################################