A bit neater to wrap define_method in class_eval.