This is a single archived entry from Stefan Tilkov’s blog. For more up-to-date content, check out my author page at INNOQ, which has more information about me and also contains a list of published talks, podcasts, and articles. Or you can check out the full archive.

A Ruby Metaprogramming Introduction

Stefan Tilkov,

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.