diff options
Diffstat (limited to 'README.EXT.ja')
-rw-r--r-- | README.EXT.ja | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/README.EXT.ja b/README.EXT.ja index 42f35249c0..c4fd7dab4b 100644 --- a/README.EXT.ja +++ b/README.EXT.ja @@ -1180,16 +1180,17 @@ rb_scan_args(int argc, VALUE *argv, const char *fmt, ...) -- scan-arg-spec := param-arg-spec [block-arg-spec] -param-arg-spec := pre-arg-spec [post-arg-spec] / post-arg-spec +param-arg-spec := pre-arg-spec [post-arg-spec] / post-arg-spec / pre-opt-post-arg-spec pre-arg-spec := num-of-leading-mandatory-args [num-of-optional-args] post-arg-spec := sym-for-variable-length-args [num-of-trailing-mandatory-args] +pre-opt-post-arg-spec := num-of-leading-mandatory-args num-of-optional-args num-of-trailing-mandatory-args block-arg-spec := sym-for-block-arg -num-of-leading-mandatory-args := DIGIT ; 先頭に置かれる省略不可能な引数の数 +num-of-leading-mandatory-args := DIGIT ; 先頭に置かれる省略不能な引数の数 num-of-optional-args := DIGIT ; 続いて置かれる省略可能な引数の数 sym-for-variable-length-args := "*" ; 続いて置かれる可変長引数を ; Rubyの配列で取得するための指定 -num-of-trailing-mandatory-args := DIGIT ; 終端に置かれる省略不可能な引数の数 +num-of-trailing-mandatory-args := DIGIT ; 終端に置かれる省略不能な引数の数 sym-for-block-arg := "&" ; イテレータブロックを取得するための ; 指定 -- |