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 | 3feaa77e74c59170a89daf4d469d6518f4233958 (patch) | |
tree | 34ec380b666a53607e216ae03a9a54e3fc4b2fbd /README.EXT | |
parent | 61d1cf72ca6f908833e44112a85a04198cb5133a (diff) | |
download | ruby-3feaa77e74c59170a89daf4d469d6518f4233958.tar.gz ruby-3feaa77e74c59170a89daf4d469d6518f4233958.tar.xz ruby-3feaa77e74c59170a89daf4d469d6518f4233958.zip |
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@22339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'README.EXT')
-rw-r--r-- | README.EXT | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/README.EXT b/README.EXT index 2d0270825..6364ab7a8 100644 --- a/README.EXT +++ b/README.EXT @@ -687,13 +687,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 ; -- the number of the leading mandatory arguments num-of-optional-args := DIGIT ; -- the number of the following optional arguments sym-for-variable-length-args := "*" ; -- indicates that the following variable length ; arguments are captured as a Ruby array +num-of-trailing-mandatory-args := DIGIT ; -- the number of the trailing mandatory arguments sym-for-block-arg := "&" ; -- indicates that the iterator block should be ; captured if given -- |