chef
https://github.com/opscode/chef
Ruby
A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure.
Chef::Mixin::LazyModuleInclude#included
Most of the magick is in this hook which creates a closure over the parent class and then builds an "infector" module which infects all descendants and which is responsible for updating the list of descendants in the parent class.
Edit
git clone [email protected]:opscode/chef.git
cd chef
open lib/chef/mixin/lazy_module_include.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Chef--Mixin--LazyModuleInclude-included-for-pr
# Commit to gitgit add lib/chef/mixin/lazy_module_include.rbgit commit -m "better docs for Chef::Mixin::LazyModuleInclude#included"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Chef--Mixin--LazyModuleInclude-included-for-pr
hub pull-request
# Celebrate!