From: Philip Mak Date: 2002-06-10T11:53:25+09:00 Subject: Re: Getting method! for free from method On Mon, Jun 10, 2002 at 11:21:23AM +0900, james@rubyxml.com wrote: > > Is there a shortcut for telling ruby to define method! for me? > > method! would suggest that there were some permanent side effects to the > receiver, and whether or not that's true depends on the specific code. > > If you have > > def right_now > Time.new.to_s > end > > then what would right_now! do? With the way I'm thinking of it, myObj.right_now! would be equivalent to: myObj = myObj.right_now