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.
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 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.