diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-12-04 08:50:28 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-12-04 08:50:28 +0000 |
commit | b62e32201727907e465edeb1f18b72544d7c2889 (patch) | |
tree | 822eda69ecd61630114c2765cd4e003dfcc9d43f /doc/extension.ja.rdoc | |
parent | b16d1968e6376c0622093d0830c50272c929d63f (diff) | |
download | ruby-b62e32201727907e465edeb1f18b72544d7c2889.tar.gz |
extension.rdoc: fix rb_get_kwargs [ci skip]
* doc/extension.rdoc: [DOC] optional keyword arguments are
defaulted to Qundef. ignored keys are kept in the hash but a
new Hash is not created. [ruby-dev:49893] [Bug #13004]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'doc/extension.ja.rdoc')
-rw-r--r-- | doc/extension.ja.rdoc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/extension.ja.rdoc b/doc/extension.ja.rdoc index 2117fe20aa..2c46cfcae6 100644 --- a/doc/extension.ja.rdoc +++ b/doc/extension.ja.rdoc @@ -1409,10 +1409,10 @@ int rb_get_kwargs(VALUE keyword_hash, const ID *table, int required, int optiona optional (optionalが負の場合は-optional-1) 個のIDは省略可能 キーワードです.必須キーワードがkeyword_hash中にない場合, "missing keyword"ArgumentErrorが発生します.省略可能キーワー - ドがない場合は,values中の対応する要素は変更されません. - keyword_hashに使用されない要素がある場合は,optionalが負なら - 新しいHashとして省略可能引数の次に保存されますが,そうでなけ - れば"unknown keyword"ArgumentErrorが発生します. + ドがない場合は,values中の対応する要素にはQundefがセットされ + ます.keyword_hashに使用されない要素がある場合は,optionalが + 負なら無視されますが,そうでなければ"unknown keyword" + ArgumentErrorが発生します. VALUE rb_extract_keywords(VALUE *original_hash) :: |