Symbol decorator.

def method(self, symbol):
        '''
        Symbol decorator.
        '''
        assert issubclass(symbol, SymbolBase)
        def wrapped(fn):
            setattr(symbol, fn.__name__, fn)
        return wrapped