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

proc.c: enable Proc#to_s rdoc

* proc.c (proc_to_s): move just after the rdoc comment.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56853 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2016-11-20 10:52:28 +00:00
parent 3a996e8a83
commit 2a546caae6

16
proc.c
View file

@ -1207,6 +1207,14 @@ proc_hash(VALUE self)
* an indication of where the proc was defined.
*/
static VALUE
proc_to_s(VALUE self)
{
const rb_proc_t *proc;
GetProcPtr(self, proc);
return proc_to_s_(self, proc);
}
static VALUE
proc_to_s_(VALUE self, const rb_proc_t *proc)
{
@ -1250,14 +1258,6 @@ proc_to_s_(VALUE self, const rb_proc_t *proc)
return str;
}
static VALUE
proc_to_s(VALUE self)
{
const rb_proc_t *proc;
GetProcPtr(self, proc);
return proc_to_s_(self, proc);
}
/*
* call-seq:
* prc.to_proc -> proc