sonic-pi
https://github.com/sonic-pi-net/sonic-pi
C++
Code. Music. Live.
Hamster::Hash#merge
Return a new `Hash` containing all the key/value pairs from this `Hash` and `other`. If no block is provided, the value for entries with colliding keys will be that from `other`. Otherwise, the value for each duplicate key is determined by calling the block. `other` can be a `Hamster::Hash`, a built-in Ruby `Hash`, or any `Enumerable` object which yields `[key, value]` pairs.
Edit
git clone [email protected]:sonic-pi-net/sonic-pi.git
cd sonic-pi
open app/server/ruby/vendor/hamster-3.0.0/lib/hamster/hash.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Hamster--Hash-merge-for-pr
# Commit to gitgit add app/server/ruby/vendor/hamster-3.0.0/lib/hamster/hash.rbgit commit -m "better docs for Hamster::Hash#merge"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Hamster--Hash-merge-for-pr
hub pull-request
# Celebrate!