Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static VALUE
- rb_hash_update(VALUE hash1, VALUE hash2)
- {
- rb_hash_modify(hash1);
- hash2 = to_hash(hash2);
- if (rb_block_given_p()) {
- rb_hash_foreach(hash2, rb_hash_update_block_i, hash1);
- }
- else {
- rb_hash_foreach(hash2, rb_hash_update_i, hash1);
- }
- return hash1;
- }
Add Comment
Please, Sign In to add comment