define_method post