summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-02-10 08:12:04 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-02-10 08:12:04 +0000
commiteb5a2eb697f3294dd421eb1d15cc198b9b6fdb15 (patch)
tree74bd93caafc0c8f937629243b44401d9dc329fc3
parentf3bfad50abb03e8b15d7df4834709f66e2558628 (diff)
downloadruby-eb5a2eb697f3294dd421eb1d15cc198b9b6fdb15.tar.gz
ruby-eb5a2eb697f3294dd421eb1d15cc198b9b6fdb15.tar.xz
ruby-eb5a2eb697f3294dd421eb1d15cc198b9b6fdb15.zip
* object.c (rb_obj_clone, rb_obj_dup): mentioned about
initialize_copy. [ruby-core:02339] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--object.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/object.c b/object.c
index 5e7763082..f996aa992 100644
--- a/object.c
+++ b/object.c
@@ -246,6 +246,10 @@ init_copy(dest, obj)
* s2.str[1,4] = "i" #=> "i"
* s1.inspect #=> "#<Klass:0x401b3a38 @str=\"Hi\">"
* s2.inspect #=> "#<Klass:0x401b3998 @str=\"Hi\">"
+ *
+ * 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 <code>clone</code> is used to duplicate
* an object, including its internal state, <code>dup</code> 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