From: Josh Huber Date: 2001-08-23T12:40:19+09:00 Subject: [ruby-talk:20153] Re: Another Possible RCR - Wrappers via Mixins Dave Thomas writes: >> def fred :around >> puts "1" >> super >> puts "2" >> end > > Except... let's not call it 'super' as that's kind of misleading. How > about 'inner', or 'chain'? sweet...this is starting to sound like elisp's defadvice, which is very cool. For example: ;; prevent accidentally replying to a newsgroup article (defadvice gnus-summary-reply (around reply-in-news activate) "Prompts before allowing a reply to a Usenet article." (interactive) (if (or (not (gnus-news-group-p gnus-newsgroup-name)) ; short-circuit (y-or-n-p "Really reply by mail to article author? ")) ad-do-it (message "Reply aborted."))) -- Josh Huber