Hi,
In message "[ruby-talk:6324] arity"
on 00/11/14, jweirich / one.net <jweirich / one.net> writes:
|I discovered the "arity" function in the documentation. What puzzles
|me is the non-intuitive values returned by arity. Why does a block
|with one argument return -2, but a block with two arguments return 2?
Try the REAL one argumented closure.
proc{|a,|...}.arity
The one you've tried was EMULATED one argumented closure.
matz.