From d038af3bdb8117249aea37fc38ad7792985bb2c8 Mon Sep 17 00:00:00 2001 From: Alexander Kahn Date: Wed, 21 Sep 2011 15:57:16 -0400 Subject: [PATCH] Add back documentation for Proc#call, #[], etc. --- proc.c | 14 ++++---------- 1 files changed, 4 insertions(+), 10 deletions(-) diff --git a/proc.c b/proc.c index 68ea1d4..5de7f36 100644 --- a/proc.c +++ b/proc.c @@ -501,13 +501,15 @@ proc_lambda(void) * prc.call(params,...) -> obj * prc[params,...] -> obj * prc.(params,...) -> obj + * prc === param -> obj * * Invokes the block, setting the block's parameters to the values in * params using something close to method calling semantics. * Generates a warning if multiple values are passed to a proc that * expects just one (previously this silently converted the parameters - * to an array). Note that prc.() invokes prc.call() with the parameters - * given. It's a syntax sugar to hide "call". + * to an array). Note that prc.() invokes prc.call() with the parameters + * given. It's syntax sugar to hide "call". prc === param allows a proc + * object to be the target of a +when+ clause in the case statement. * * For procs created using Kernel.proc, generates an * error if the wrong number of parameters @@ -530,14 +532,6 @@ proc_lambda(void) * from prog.rb:5 */ -/* - * call-seq: - * prc === obj -> result_of_proc - * - * Invokes the block, with obj as the block's parameter. It is - * to allow a proc object to be a target of +when+ clause in the case statement. - */ - static VALUE proc_call(int argc, VALUE *argv, VALUE procval) { -- 1.7.6