Proc.arity in ruby-3.0.2 vs ruby-2.X.X

Hi Everyone,

Please take a look on the below deviation when executing exactly the same code:
image

I used 2.7.4. However, any 2.X.X returns “1”.

Is this some kind of BWD compatability issue or a documented change?
Thank you

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs