Guest User

Untitled

a guest
Jan 23rd, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. static VALUE
  2. rb_hash_update(VALUE hash1, VALUE hash2)
  3. {
  4. rb_hash_modify(hash1);
  5. hash2 = to_hash(hash2);
  6. if (rb_block_given_p()) {
  7. rb_hash_foreach(hash2, rb_hash_update_block_i, hash1);
  8. }
  9. else {
  10. rb_hash_foreach(hash2, rb_hash_update_i, hash1);
  11. }
  12. return hash1;
  13. }
Add Comment
Please, Sign In to add comment