1件ヒット
[1-1件を表示]
(0.055秒)
ライブラリ
- ビルトイン (1)
検索結果
-
Proc
# arity -> Integer (78754.0) -
Proc オブジェクトが受け付ける引数の数を返します。
...
Proc オブジェクトが受け付ける引数の数を返します。
ただし、可変長引数を受け付ける場合、負の整数
-(必要とされる引数の数 + 1)
を返します。
//emlist[例][ruby]{
lambda{ }.arity # => 0
lambda{|| }.arity # => 0
lambd...