1
2
3
4
class MetaClass(type):
    def __new__(cls, name, bases, attrs):
        return super(MetaClass, cls).__new__(cls, name, bases, attrs)
...

Python How to dynamically pass bas...

by dominno, December 08, 2009 07:47, No refactoring, tagged with python, metaclass

I need to dynamically creat...

25cf66e4ecb9887c788ef2d13a2f8c16 Talk
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...

8f93a872e399bc1353cc8d4e791d5401 Talk