modify define_accessor_meth method

change define_accessor_meth method
self.class.class_eval -> self.class_eval
define_method -> define_singleton_method