support yank-method-define