yard-contracts
yard-contracts copied to clipboard
Add method overloading support
The last overloading of a method overrides all prior ones in the docs. YARD has the @overload tag for documenting this kind of thing, and as a big feature of Contracts is dynamic dispatch, yard-contracts should support documenting it.
When a second contract is documented it should check for existing documentation of the method, add overload tag and merge. Could be tricky figuring out if the addition of overload and indent has already been done, e.g. if this isn't the first overloading of that method. Probably match(/@overload/)
will do.
+1 for this!