From: matz@... (Yukihiro Matsumoto) Date: 2002-08-27T14:14:29+09:00 Subject: Re: Question about Ruby extension API Hi, In message "Re: Question about Ruby extension API" on 02/08/27, Patrick Bennett writes: |In my specific case, I have a Time-derived class that I created through |the API, and I have a method that needs to adjust the underlying time by |a specific offset. |I'm trying to do the equivalent of self.+= (fixnum) but it doesn't work. |Why wouldn't I be able to call += or = for my derived-class ? "a+=b" is a syntax sugar for "a = a + b", so that it cannot be redefined (since it is not a method). you have to redefine the "+" method. matz.