From 2a546caae63960a269cb58731e61fea4c7e9797c Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 20 Nov 2016 10:52:28 +0000 Subject: [PATCH] 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 --- proc.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/proc.c b/proc.c index f350942101..d72e1a9254 100644 --- a/proc.c +++ b/proc.c @@ -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