* cont.c, proc.c: added rdoc.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-09-21 11:06:32 +00:00
parent f331b5584e
commit 2d8a79fa47
2 changed files with 19 additions and 0 deletions

1
cont.c
View File

@ -776,6 +776,7 @@ fiber_init(VALUE fibval, VALUE proc)
return fibval; return fibval;
} }
/* :nodoc: */
static VALUE static VALUE
rb_fiber_init(VALUE fibval) rb_fiber_init(VALUE fibval)
{ {

18
proc.c
View File

@ -94,6 +94,7 @@ rb_obj_is_proc(VALUE proc)
} }
} }
/* :nodoc: */
static VALUE static VALUE
proc_dup(VALUE self) proc_dup(VALUE self)
{ {
@ -111,6 +112,7 @@ proc_dup(VALUE self)
return procval; return procval;
} }
/* :nodoc: */
static VALUE static VALUE
proc_clone(VALUE self) proc_clone(VALUE self)
{ {
@ -278,6 +280,7 @@ binding_alloc(VALUE klass)
return obj; return obj;
} }
/* :nodoc: */
static VALUE static VALUE
binding_dup(VALUE self) binding_dup(VALUE self)
{ {
@ -289,6 +292,7 @@ binding_dup(VALUE self)
return bindval; return bindval;
} }
/* :nodoc: */
static VALUE static VALUE
binding_clone(VALUE self) binding_clone(VALUE self)
{ {
@ -1117,6 +1121,13 @@ rb_obj_method(VALUE obj, VALUE vid)
return mnew(CLASS_OF(obj), obj, rb_to_id(vid), rb_cMethod, FALSE); return mnew(CLASS_OF(obj), obj, rb_to_id(vid), rb_cMethod, FALSE);
} }
/*
* call-seq:
* obj.public_method(sym) => method
*
* Similar to _methd_, searches public method only.
*/
VALUE VALUE
rb_obj_public_method(VALUE obj, VALUE vid) rb_obj_public_method(VALUE obj, VALUE vid)
{ {
@ -1161,6 +1172,13 @@ rb_mod_instance_method(VALUE mod, VALUE vid)
return mnew(mod, Qundef, rb_to_id(vid), rb_cUnboundMethod, FALSE); return mnew(mod, Qundef, rb_to_id(vid), rb_cUnboundMethod, FALSE);
} }
/*
* call-seq:
* mod.public_instance_method(symbol) => unbound_method
*
* Similar to _instance_methd_, searches public method only.
*/
static VALUE static VALUE
rb_mod_public_instance_method(VALUE mod, VALUE vid) rb_mod_public_instance_method(VALUE mod, VALUE vid)
{ {