From: "Mauricio Fernández" Date: 2004-11-14T18:19:25+09:00 Subject: Re: [DOCBUG] Proc#arity On Sun, Nov 14, 2004 at 04:22:24PM +0900, Joel VanderWerf wrote: > > An inconsistency in the docs for Proc#arity ? Here's what ri says: > > arguments. A +proc+ with no argument declarations returns -1, as it > can accept (and ignore) an arbitrary number of parameters. > > Proc.new {}.arity #=> 0 > > $ ruby -v > ruby 1.9.0 (2004-11-08) [i686-linux] Thu Mar 18 16:22:38 2004 Yukihiro Matsumoto [...] * eval.c (proc_arity): arity is now defined as number of parameters that would not be ignored. i.e. Proc.new{}.arity returns zero. update test suites too. http://rcrchive.net/rcr/show/227 -- Hassle-free packages for Ruby? RPA is available from http://www.rubyarchive.org/