7stud -- wrote:
> How come when you redefine the inherited method in Class, you don't use
> the 'class method' syntax?  This doesn't work:
> 
> class Class
>   def Class.inherited(class_obj)
>     puts class_obj
>     puts
>   end
> end
> 
> 
> Instead, you have to write:
> 
> class Class
>   def inherited(class_obj)
>     puts class_obj
>     puts
> 
>   end
> end
> 
> Yet, in pickaxe2 on p. 445, the book lists inherited as a class method
> of Class.

I'm not sure what pickaxe writes about this, but how would it be called
on the class that's been inherited if it were a class method of Class?
Then you couldn't redefine it on a per-class basis.

mortee