mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* proc.c (method_clone): Added documentation. Patch by Robin Dupret.
Fixes #152 on github. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a996b48515
commit
292a319608
2 changed files with 19 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
Wed Aug 8 05:51:20 2012 Eric Hodel <drbrain@segment7.net>
|
||||
|
||||
* proc.c (method_clone): Added documentation. Patch by Robin Dupret.
|
||||
Fixes #152 on github.
|
||||
|
||||
Tue Aug 7 20:19:29 2012 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* ext/readline/readline.c (Init_readline): rl_catch_signals=0 returns
|
||||
|
|
16
proc.c
16
proc.c
|
@ -1444,9 +1444,21 @@ rb_obj_define_method(int argc, VALUE *argv, VALUE obj)
|
|||
return rb_mod_define_method(argc, argv, klass);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* MISSING: documentation
|
||||
* call-seq:
|
||||
* method.clone -> new_method
|
||||
*
|
||||
* Returns a clone of this method.
|
||||
*
|
||||
* class A
|
||||
* def foo
|
||||
* return "bar"
|
||||
* end
|
||||
* end
|
||||
*
|
||||
* m = A.new.method(:foo)
|
||||
* m.call # => "bar"
|
||||
* n = m.clone.call # => "bar"
|
||||
*/
|
||||
|
||||
static VALUE
|
||||
|
|
Loading…
Reference in a new issue