A Ruby Metaprogramming Introduction

, Feb 11, 2007

John Hume:

I was playing around with some unit tests to explore Ruby singleton classes on a recent flight when I decided they could be fleshed out into a pretty nice introduction to some basics of Ruby metaprogramming for those who haven’t done much with Ruby (which probably includes most people who’ve only written Rails applications).

Update: This _why article, referenced in the above post, is also highly recommended.