From: Chad Fowler Date: 2003-12-16T13:23:44+09:00 Subject: Re: trying to override != or create a unary negation method On Tue, 16 Dec 2003, Francis Hwang wrote: # So I figure, fine, I can make my query condition objects flip # themselves when they're negated. Tried creating a unary negation # method: # # def !@ # # ... # end # # and just got a syntax error. Any ideas as to what I could try next? # As far as I know, you're just not going to be able to define your own behavior for this syntax. It's not a valid method name as per parse.y (tNEG is not valid for the "op" production). You could always define a method called "not()", but it won't have that "magic" flavor to it (not necessarily a bad thing, IMO). Chad