Thursday, August 03, 2006

Dynamically Add Methods to Classes Through their Objects in Ruby

Playing with the implementation of a new library I am working on called starfish (I will blog about it shortly), I came up with this fun little Ruby hack that makes Ruby seem more like a prototype-based language than it already does.

About Me

With almost 8 years of PHP and MySQL development experience, I found Rails in September of 2004 and fell in love. I have experience in a wide range of languages but spend most of my time with Ruby these days.