3 ms·
Since Ruby 2.1 (IIRC), method definition returns symbol, therefore it's possible to something like typesig def meth(arg) arg end, [Numeric] => Numeric Altho
by arnvald 12y ago
Since Ruby 2.1 (IIRC), method definition returns symbol, therefore it's possible to something like
typesig def meth(arg)
arg
end, [Numeric] => Numeric
Although it's still end of the method, it already suggests that signature will be there