Flowdock
method

initialize_copy

Importance_0
Ruby latest stable (v2_5_5) - 0 notes - Class: Class

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1_9_3_125) is shown here.

These similar methods exist in v2_5_5:

initialize_copy(p1) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
VALUE
rb_class_init_copy(VALUE clone, VALUE orig)
{
    if (orig == rb_cBasicObject) {
	rb_raise(rb_eTypeError, "can't copy the root class");
    }
    if (RCLASS_SUPER(clone) != 0 || clone == rb_cBasicObject) {
	rb_raise(rb_eTypeError, "already initialized class");
    }
    if (FL_TEST(orig, FL_SINGLETON)) {
	rb_raise(rb_eTypeError, "can't copy singleton class");
    }
    return rb_mod_init_copy(clone, orig);
}
Register or log in to add new notes.