hash.c: [DOC] improve Hash#{select!,keep_if} docs
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
139d9d819c
commit
b3adc0c564
7
hash.c
7
hash.c
@ -2359,8 +2359,8 @@ keep_if_i(VALUE key, VALUE value, VALUE hash)
|
|||||||
* hsh.select! {| key, value | block } -> hsh or nil
|
* hsh.select! {| key, value | block } -> hsh or nil
|
||||||
* hsh.select! -> an_enumerator
|
* hsh.select! -> an_enumerator
|
||||||
*
|
*
|
||||||
* Equivalent to <code>Hash#keep_if</code>, but returns
|
* Equivalent to Hash#keep_if, but returns
|
||||||
* <code>nil</code> if no changes were made.
|
* +nil+ if no changes were made.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
VALUE
|
VALUE
|
||||||
@ -2383,10 +2383,11 @@ rb_hash_select_bang(VALUE hash)
|
|||||||
* hsh.keep_if -> an_enumerator
|
* hsh.keep_if -> an_enumerator
|
||||||
*
|
*
|
||||||
* Deletes every key-value pair from <i>hsh</i> for which <i>block</i>
|
* Deletes every key-value pair from <i>hsh</i> for which <i>block</i>
|
||||||
* evaluates to false.
|
* evaluates to +false+.
|
||||||
*
|
*
|
||||||
* If no block is given, an enumerator is returned instead.
|
* If no block is given, an enumerator is returned instead.
|
||||||
*
|
*
|
||||||
|
* See also Hash#select!.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
VALUE
|
VALUE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user