From: Love U Ruby Date: 2013-02-14T21:49:37+09:00 Subject: Re: Best DRY way to write bang versions of methods? Edoardo Rossi wrote in post #1096893: > On Thu, Feb 14, 2013 at 1:06 PM, Joel Pearson @Rossi `+1` to you. >> > > Hi... > > IMHO sometimes this is useful: > > def foo(something) > dup.foo!(something) > end > > def foo!(something) > # do the work... > end > > e. -- Posted via http://www.ruby-forum.com/.