diff options
-rw-r--r-- | hash.c | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -2665,13 +2665,16 @@ rb_hash_slice(int argc, VALUE *argv, VALUE hash) /* * call-seq: - * hsh.except(*keys) -> a_hash * - * Returns a new +Hash+ excluding entries for the given +keys+: - * h = { a: 100, b: 200, c: 300 } - * h.except(:a) #=> {b: 200, c: 300} * - * Any given +keys+ that are not found are ignored. */ static VALUE |