Matthew Kerwin wrote in post #1136252:
> Here are some other examples:

>
> With an optional/default parameter, the Proc object reports number of
> "required" parameters*, while the Method and Lambda objects report the
> one's complement.
>

Again exception -

(arup~>Ruby)$ pry --simple-prompt
>> p = proc { |a,*b,c| }
=> #<Proc:0x84f7704@(pry):1>
>> l = lambda { |a,*b,c| }
=> #<Proc:0x84bbeac@(pry):2 (lambda)>
>> l.arity
=> -3
>> p.arity
=> -3
>>

-- 
Posted via http://www.ruby-forum.com/.