summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
-rw-r--r--hash.c8
1 files changed, 5 insertions, 3 deletions
@@ -2646,11 +2646,13 @@ rb_hash_reject(VALUE hash)
* call-seq:
* slice(*keys) -> new_hash
*
- * Returns a new +Hash+ object containing the entries for the given +keys+:
* h = {foo: 0, bar: 1, baz: 2}
- * h.slice(:baz, :foo) # => {baz: 2, foo: 0}
*
- * Any given +keys+ that are not found are ignored.
*/
static VALUE