summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
authordave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-08-30 12:51:06 +0000
committerdave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-08-30 12:51:06 +0000
commiteb5dddd6b207249af3db4a31101f26fe0c8ead05 (patch)
treebc068b9dcec08c2244431964ec1fbff9318b96ca /object.c
parentab8407ac2cb812bb6168f416d979b4f55a9b7f4b (diff)
Add RDoc for Module.included
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'object.c')
-rw-r--r--object.c31
1 files changed, 28 insertions, 3 deletions
diff --git a/object.c b/object.c
index e8d86c7..2ccc8b9 100644
--- a/object.c
+++ b/object.c
@@ -529,7 +529,7 @@ rb_obj_is_kind_of(obj, c)
/*
- * Document-method: singleton-method-added
+ * Document-method: singleton_method_added
*
* call-seq:
* singleton_method_added(symbol)
@@ -555,7 +555,7 @@ rb_obj_is_kind_of(obj, c)
*/
/*
- * Document-method: singleton-method-removed
+ * Document-method: singleton_method_removed
*
* call-seq:
* singleton_method_removed(symbol)
@@ -583,7 +583,7 @@ rb_obj_is_kind_of(obj, c)
*/
/*
- * Document-method: singleton-method-undefined
+ * Document-method: singleton_method_undefined
*
* call-seq:
* singleton_method_undefined(symbol)
@@ -607,6 +607,31 @@ rb_obj_is_kind_of(obj, c)
*/
+/*
+ * Document-method: included
+ *
+ * call-seq:
+ * included( othermod )
+ *
+ * Callback invoked whenever the receiver is included in another
+ * module or class. This should be used in preference to
+ * <tt>Module.append_features</tt> if your code wants to perform some
+ * action when a module is included in another.
+ *
+ * module A
+ * def A.included(mod)
+ * puts "#{self} included in #{mod}"
+ * end
+ * end
+ * module Enumerable
+ * include A
+ * end
+ */
+
+
+/*
+ * Not documented
+ */
static VALUE
rb_obj_dummy()