From: Tony Arcieri Date: 2009-12-23T12:40:39+09:00 Subject: Re: Strange behavior of unary +@ for Fixnum? --000e0cd630a27ad4a8047b5d1406 Content-Type: text/plain; charset=ISO-8859-1 On Mon, Dec 21, 2009 at 3:51 PM, Alexandre Mutel wrote: > It seems that it's not possible to use the unary +@ operator for Fixnum > in a "short form" way : > > class Fixnum > def +@ > puts "YES #{self}" > end > end > => nil > Just to further fan the flames of WTF: >> class Fixnum >> def +@ >> puts "YES #{self}" >> end >> end => nil >> 7.send :'-@' => -7 So much for the "it's just the lexer!" theory... -- Tony Arcieri Medioh! A Kudelski Brand --000e0cd630a27ad4a8047b5d1406--