sonic-pi
https://github.com/sonic-pi-net/sonic-pi
C++
Code. Music. Live.
ActiveSupport::Dependencies#remove_unloadable_constants!
Remove the constants that have been autoloaded, and those that have been marked for unloading. Before each constant is removed a callback is sent to its class/module if it implements +before_remove_const+. The callback implementation should be restricted to cleaning up caches, etc. as the environment will be in an inconsistent state, e.g. other constants may have already been unloaded and not accessible.
Edit
git clone [email protected]:sonic-pi-net/sonic-pi.git
cd sonic-pi
open app/server/ruby/vendor/activesupport/lib/active_support/dependencies.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-ActiveSupport--Dependencies-remove_unloadable_constants--for-pr
# Commit to gitgit add app/server/ruby/vendor/activesupport/lib/active_support/dependencies.rbgit commit -m "better docs for ActiveSupport::Dependencies#remove_unloadable_constants!"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-ActiveSupport--Dependencies-remove_unloadable_constants--for-pr
hub pull-request
# Celebrate!