Method Missing & Proxies in Ruby
Great article from John Nunemaker explaining how to create proxies — objects that act like other objects — in Ruby, using a little bit of method_missing magic.
If you need to seriously extend the functionality of existing Ruby classes, it’s much cleaner and safer to use proxies, so this article is a must-read.