From: "Kontra, Gergely" Date: 2002-06-11T02:41:04+09:00 Subject: def += Hi! I've successfully redefined the + method, the <=> method in some classes, but when I tried the same with +=, it doesn't work. (I use ruby 1.6.6) Eg.: class Hash def +=(other) {} # dummy end end gives: SyntaxError: compile error def +=(other) ^ (irb):5: parse error Then, my Q is how to (re)define the += operator (method)). Thx in advance Gergo +-[Kontra, Gergely @ Budapest University of Technology and Economics]-+ | Email: kgergely@mcl.hu, kgergely@turul.eet.bme.hu | | URL: turul.eet.bme.hu/~kgergely Mobile: (+36 20) 356 9656 | +-------"Olyan langesz vagyok, hogy poroltoval kellene jarnom!"-------+ . Magyar php mirror es magyar php dokumentacio: http://hu.php.net