sonic-pi

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

C++

Code. Music. Live.

Object#to_query

Converts an object into a string suitable for use as a URL query string, using the given <tt>key</tt> as the
param name.

Note: This method is defined as a default implementation for all Objects for Hash#to_query to work.

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/core_ext/object/to_query.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Object-to_query-for-pr


# Commit to git

git add app/server/ruby/vendor/activesupport-7.0.6/lib/active_support/core_ext/object/to_query.rbgit commit -m "better docs for Object#to_query"


# Open pull request

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

hub fork

git push <your name> -your-name--update-docs-Object-to_query-for-pr

hub pull-request


# Celebrate!