1 2 3 4
class MetaClass(type): def __new__(cls, name, bases, attrs): return super(MetaClass, cls).__new__(cls, name, bases, attrs) ...
1 2 3 4
require 'erb' # GOAL: render the template with the following vars ...
Ruby Given a hash of variables, ...
by mislav,
April 12, 2008 15:12,
3 refactorings, tagged with erb, singleton, metaclass, metaprogramming, hash, render
This works. Now, is there a...
I need to dynamically creat...