Actually, the more that I think about it,t he right way to do this i just `self.klass.create_and_define_method`.