From: Philip Mak Date: 2002-06-10T11:28:05+09:00 Subject: Re: Getting method! for free from method On Mon, Jun 10, 2002 at 11:19:16AM +0900, Ned Konz wrote: > > def method > > # do something > > end > > > > Is there a shortcut for telling ruby to define method! for me? > > No. How would it know what you wanted method!() to do? I was thinking of something like this: #define o.method!(x) o = o.method(x) meaning that for example this code: x = "hello" x.upcase! would be interpreted like this: x = "hello" x = x.upcase