diff options
| author | cremno <[email protected]> | 2015-06-22 13:34:24 +0200 |
|---|---|---|
| committer | cremno <[email protected]> | 2015-06-22 13:34:24 +0200 |
| commit | f0eaf9eaf53ce659c44ce6beeedbeb8bfc5b4efa (patch) | |
| tree | 24157e0c89c1fce3e85335d513e1323f4743c490 /src/numeric.c | |
| parent | e344c6ab6d7b3d6a8ffcec6f7f96aeba6c5fdeda (diff) | |
| download | mruby-f0eaf9eaf53ce659c44ce6beeedbeb8bfc5b4efa.tar.gz mruby-f0eaf9eaf53ce659c44ce6beeedbeb8bfc5b4efa.zip | |
fix arity of lambdas with optional arguments
From the CRuby 2.2.2 Proc#arity documentation:
If the block has optional arguments, returns -n-1, where n is the number
of mandatory arguments, with the exception for blocks that are not
lambdas and have only a finite number of optional arguments; in this
latter case, returns n.
Diffstat (limited to 'src/numeric.c')
0 files changed, 0 insertions, 0 deletions
