From: August Lilleaas Date: 2007-09-21T03:07:01+09:00 Subject: Re: Dynamic detection of bang and question methods Rick Denatale wrote: > shadowfax:~/Documents rick$ cat magic_bang.rb > module MagicBang > > def method_missing(msg, *args, &blk) > msg.to_s.sub(/(.+)!$/) do > __send__($1, *args, &blk) > return save > end > super > end > end I would, however, argue that bang_given? would look a lot more clean. But then again, the effort it'll take to implement this is probably not worth it. Would be cool, but I guess it's not useful enough. -- Posted via http://www.ruby-forum.com/.