Where is initialize originally defined?

Hi to everyone,

could you please tell me where the initialize method is originally defined?

I thought it should be defined in Object, Class, or Module. But on
http://www.rubycentral.com/book/builtins.html I can’t see it anywhere.

Please enlighten me. Thanks!
Markus

could you please tell me where the initialize method is originally defined?

private method of Object
Class, Module (and Array, ...) redefine it

Guy Decoux

ts wrote:

private method of Object
Class, Module (and Array, …) redefine it
Thanks!

I wonder where I can find a downloadable documentation in which all
methods are visible. And I wonder why the document on RubyCentral that I
mentioned does list for example the method method_missing (which seems
to be private as well) but doesn’t list initialize.

Thanks for your patient help!
Markus

I wonder where I can find a downloadable documentation in which all
methods are visible. And I wonder why the document on RubyCentral that I
mentioned _does_ list for example the method method_missing (which seems
to be private as well) but doesn't list initialize.

Object#initialize is a private method defined in Object

method_missing is a global function, i.e. a module function of Kernel.

The pickaxe describe only method defined in Kernel, and this explain why
Object#initialize is not described (and this must be the only exception)

Guy Decoux

ts wrote:

I wonder where I can find a downloadable documentation in which all
methods are visible. And I wonder why the document on RubyCentral that I
mentioned does list for example the method method_missing (which seems
to be private as well) but doesn’t list initialize.

Object#initialize is a private method defined in Object

method_missing is a global function, i.e. a module function of Kernel.

The pickaxe describe only method defined in Kernel, and this explain why
Object#initialize is not described (and this must be the only exception)

I’ll probably add it in for 1.8; I hadn’t done it before because it
didn’t seem to fit there, but now that we have allocation as a function
it shou;d go in for completeness.

Cheers

Dave