Ric sent me Metaprogramming: Ruby vs.
and at first I thought it looked pretty basic. However, I've noticed a
lot of DailyJS readers are experienced ruby developers, and there are
some good pointers in this article for rubyists.
For example, if you're used to the metaclass in ruby, you might
because it is so simple. We avoid the whole metaclass business because
does not distinguish between classes/prototypes and instances and,
therefore, we can add our desired behavior directly to the instance.
experimentation and stretched the limits of stylistically acceptable
DSLs I explain various
techniques for giving the illusion of a friendly DSL. However, the best
more explicit, so I've never felt 100% comfortable with the approaches
in that article.