sonic-pi

https://github.com/sonic-pi-net/sonic-pi

C++

Code. Music. Live.

ActiveSupport::XmlMini_REXML#merge!

Adds a new key/value pair to an existing Hash. If the key to be added
already exists and the existing value associated with key is not
an Array, it will be wrapped in an Array. Then the new value is
appended to that Array.

hash::
  Hash to add key/value pair to.
key::
  Key to be added.
value::
  Value to be associated with key.

Source | Google | Stack overflow

Edit

git clone [email protected]:sonic-pi-net/sonic-pi.git

cd sonic-pi

open app/server/ruby/vendor/activesupport-7.0.6/lib/active_support/xml_mini/rexml.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-ActiveSupport--XmlMini_REXML-merge--for-pr


# Commit to git

git add app/server/ruby/vendor/activesupport-7.0.6/lib/active_support/xml_mini/rexml.rbgit commit -m "better docs for ActiveSupport::XmlMini_REXML#merge!"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-ActiveSupport--XmlMini_REXML-merge--for-pr

hub pull-request


# Celebrate!