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