* hash.c (rb_hash_reject): add documentation that Hash#reject
without block returns enumerator. patched by Michael Edgar [Bug #4847] [ruby-core:36800] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a252c17e15
commit
145fccbd42
@ -1,3 +1,9 @@
|
|||||||
|
Mon Jun 27 00:40:47 2011 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
|
* hash.c (rb_hash_reject): add documentation that Hash#reject
|
||||||
|
without block returns enumerator.
|
||||||
|
patched by Michael Edgar [Bug #4847] [ruby-core:36800]
|
||||||
|
|
||||||
Sun Jun 26 23:49:21 2011 Tadayoshi Funaba <tadf@dotrb.org>
|
Sun Jun 26 23:49:21 2011 Tadayoshi Funaba <tadf@dotrb.org>
|
||||||
|
|
||||||
* test/date/test_switch_hitter.rb: added a test.
|
* test/date/test_switch_hitter.rb: added a test.
|
||||||
|
1
hash.c
1
hash.c
@ -944,6 +944,7 @@ rb_hash_reject_bang(VALUE hash)
|
|||||||
/*
|
/*
|
||||||
* call-seq:
|
* call-seq:
|
||||||
* hsh.reject {| key, value | block } -> a_hash
|
* hsh.reject {| key, value | block } -> a_hash
|
||||||
|
* hsh.reject -> an_enumerator
|
||||||
*
|
*
|
||||||
* Same as <code>Hash#delete_if</code>, but works on (and returns) a
|
* Same as <code>Hash#delete_if</code>, but works on (and returns) a
|
||||||
* copy of the <i>hsh</i>. Equivalent to
|
* copy of the <i>hsh</i>. Equivalent to
|
||||||
|
Loading…
x
Reference in New Issue
Block a user