Unary Operators for Non-Numeric Objects It's possible to implement unary operators to an object by defining the -@ and +@ methods within the class declaration class True def -@ false end def +@ true end end t = True.new p -t p +t produces false true