lsegal/yard — Issue #487: How to write documents for binary operators such as +, -, etc.
Author: kubo
Created: 2012-02-10 03:25:19+00:00
State: open

Look at the following code:

class NumericClass
def +(other)
end
end

I want `(Object) <- self + other` or so as a call-sequence, because "+" is a binary operator.
But I get `(Object) +(other)`.
`@overload self + other` doesn't solve it. I get `(Object) self(+other)` by it.

How can I change the call-sequence that looks like an arithmetic binary operation?