Use class_eval as #define_method is private > 1.9.3