mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Add documentation for Module#included
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8e94bb29ae
commit
f7b9018390
2 changed files with 32 additions and 3 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Mon Aug 30 21:50:14 2004 Dave Thomas <dave@pragprog.com>
|
||||||
|
|
||||||
|
* object.c: Add RDoc for Module.included.
|
||||||
|
|
||||||
Mon Aug 30 23:11:06 2004 Dave Thomas <dave@pragprog.com>
|
Mon Aug 30 23:11:06 2004 Dave Thomas <dave@pragprog.com>
|
||||||
|
|
||||||
* lib/rdoc/ri/ri_driver.rb (and others): ri now merges documentation
|
* lib/rdoc/ri/ri_driver.rb (and others): ri now merges documentation
|
||||||
|
|
31
object.c
31
object.c
|
@ -503,7 +503,7 @@ rb_obj_is_kind_of(obj, c)
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Document-method: singleton-method-added
|
* Document-method: singleton_method_added
|
||||||
*
|
*
|
||||||
* call-seq:
|
* call-seq:
|
||||||
* singleton_method_added(symbol)
|
* singleton_method_added(symbol)
|
||||||
|
@ -529,7 +529,7 @@ rb_obj_is_kind_of(obj, c)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Document-method: singleton-method-removed
|
* Document-method: singleton_method_removed
|
||||||
*
|
*
|
||||||
* call-seq:
|
* call-seq:
|
||||||
* singleton_method_removed(symbol)
|
* singleton_method_removed(symbol)
|
||||||
|
@ -557,7 +557,7 @@ rb_obj_is_kind_of(obj, c)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Document-method: singleton-method-undefined
|
* Document-method: singleton_method_undefined
|
||||||
*
|
*
|
||||||
* call-seq:
|
* call-seq:
|
||||||
* singleton_method_undefined(symbol)
|
* singleton_method_undefined(symbol)
|
||||||
|
@ -581,6 +581,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
|
static VALUE
|
||||||
rb_obj_dummy()
|
rb_obj_dummy()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue