From 2d6308cceb79078e4a2c0e5ed31450c5fc61babf Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 10 Feb 2004 08:12:04 +0000 Subject: * object.c (rb_obj_clone, rb_obj_dup): mentioned about initialize_copy. [ruby-core:02339] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- object.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'object.c') diff --git a/object.c b/object.c index c76b27f16e..0e89b0f619 100644 --- a/object.c +++ b/object.c @@ -246,6 +246,10 @@ init_copy(dest, obj) * s2.str[1,4] = "i" #=> "i" * s1.inspect #=> "#" * s2.inspect #=> "#" + * + * This method may have class-specific behavior. If so, that + * behavior will be documented under the #+initialize_copy+ method of + * the class. */ VALUE @@ -278,6 +282,10 @@ rb_obj_clone(obj) * in descendent classes. While clone is used to duplicate * an object, including its internal state, dup typically * uses the class of the descendent object to create the new instance. + * + * This method may have class-specific behavior. If so, that + * behavior will be documented under the #+initialize_copy+ method of + * the class. */ VALUE -- cgit v1.2.3