How do the AR singleton methods actually do there magic?

Watch the MetaProgramming - Extending Ruby for Fun and Profit screencast by Dave Thomas. http://www.infoq.com/presentations/metaprogramming-ruby

Check out my site www.rubyplus.org, there is a screencast on Include Vs Extend that is also related.