mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* proc.c (method_proc): rename to method_to_proc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
cac2c6d331
commit
8147bd1e49
2 changed files with 7 additions and 3 deletions
|
@ -1,3 +1,7 @@
|
|||
Thu May 21 10:59:43 2015 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* proc.c (method_proc): rename to method_to_proc.
|
||||
|
||||
Thu May 21 10:51:54 2015 Jake Worth <jakeworth82@gmail.com>
|
||||
|
||||
* io.c (rb_f_select): [DOC] Fixes for grammar and style.
|
||||
|
|
6
proc.c
6
proc.c
|
@ -2397,7 +2397,7 @@ rb_proc_new(
|
|||
*/
|
||||
|
||||
static VALUE
|
||||
method_proc(VALUE method)
|
||||
method_to_proc(VALUE method)
|
||||
{
|
||||
VALUE procval;
|
||||
struct METHOD *meth;
|
||||
|
@ -2679,7 +2679,7 @@ proc_curry(int argc, const VALUE *argv, VALUE self)
|
|||
static VALUE
|
||||
rb_method_curry(int argc, const VALUE *argv, VALUE self)
|
||||
{
|
||||
VALUE proc = method_proc(self);
|
||||
VALUE proc = method_to_proc(self);
|
||||
return proc_curry(argc, argv, proc);
|
||||
}
|
||||
|
||||
|
@ -2806,7 +2806,7 @@ Init_Proc(void)
|
|||
rb_define_method(rb_cMethod, "arity", method_arity_m, 0);
|
||||
rb_define_method(rb_cMethod, "inspect", method_inspect, 0);
|
||||
rb_define_method(rb_cMethod, "to_s", method_inspect, 0);
|
||||
rb_define_method(rb_cMethod, "to_proc", method_proc, 0);
|
||||
rb_define_method(rb_cMethod, "to_proc", method_to_proc, 0);
|
||||
rb_define_method(rb_cMethod, "receiver", method_receiver, 0);
|
||||
rb_define_method(rb_cMethod, "name", method_name, 0);
|
||||
rb_define_method(rb_cMethod, "original_name", method_original_name, 0);
|
||||
|
|
Loading…
Add table
Reference in a new issue