1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* eval.c (rb_obj_define_method): add half boiled RDoc document.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2006-10-11 08:12:17 +00:00
parent 11674f4a3e
commit 76f721470b
2 changed files with 15 additions and 0 deletions

View file

@ -1,3 +1,7 @@
Wed Oct 11 17:11:03 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (rb_obj_define_method): add half boiled RDoc document.
Wed Oct 11 16:57:46 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* array.c (rb_ary_replace): should shift lfree pointer before

11
eval.c
View file

@ -9569,6 +9569,17 @@ rb_mod_define_method(int argc, VALUE *argv, VALUE mod)
return body;
}
/*
* call-seq:
* obj.define_singleton_method(symbol, method) => new_method
* obj.define_singleton_method(symbol) { block } => proc
*
* Defines a singleton method for the receiver. The _method_
* parameter can be a +Proc+ or +Method+ object.
* If a block is specified, it is used as the method body.
* See <code>Kernel#define_method</code>.
*/
static VALUE
rb_obj_define_method(int argc, VALUE *argv, VALUE obj)
{