diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-16 08:04:56 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-16 08:04:56 +0000 |
commit | f5ca95ee10189e91c39c63f4bedbfa6fa75ef763 (patch) | |
tree | 34ec380b666a53607e216ae03a9a54e3fc4b2fbd /README.EXT.ja | |
parent | 1e5de389da4c5043b8aed81138c4980fad7393e3 (diff) | |
download | ruby-f5ca95ee10189e91c39c63f4bedbfa6fa75ef763.tar.gz |
* class.c (rb_scan_args), README.EXT, README.EXT.ja: Add support
for specifying the number of the trailing mandatory arguments.
Update the documents accordingly. [ruby-dev:37995]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'README.EXT.ja')
-rw-r--r-- | README.EXT.ja | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/README.EXT.ja b/README.EXT.ja index d7a688f721..feecc26e2b 100644 --- a/README.EXT.ja +++ b/README.EXT.ja @@ -775,13 +775,14 @@ scan-arg-spec := param-arg-spec [block-arg-spec] param-arg-spec := pre-arg-spec [post-arg-spec] / post-arg-spec pre-arg-spec := num-of-leading-mandatory-args [num-of-optional-args] -post-arg-spec := sym-for-variable-length-args +post-arg-spec := sym-for-variable-length-args [num-of-trailing-mandatory-args] block-arg-spec := sym-for-block-arg num-of-leading-mandatory-args := DIGIT ; -- 先頭に置かれる省略不可能な引数の数 num-of-optional-args := DIGIT ; -- 続いて置かれる省略可能な引数の数 sym-for-variable-length-args := "*" ; -- 続いて置かれる可変長引数をRubyの配列で ; 取得するための指定 +num-of-trailing-mandatory-args := DIGIT ; -- 終端に置かれる省略不可能な引数の数 sym-for-block-arg := "&" ; -- イテレータブロックを取得するための指定 -- |