Providing additional description to params #96
Replies: 2 comments 3 replies
-
There's no built in way of adding documentation inside a sig for Sorbet. And I don't really see a benefit over YARD but wanted to mention that you can also split the
|
Beta Was this translation helpful? Give feedback.
-
I'd be open to supporting such comments – I don't love writing the param name three times in these cases (as a YARD annotation, sig, and method def). I would want the Shopify folks such as @KaanOzkan to be on board though. Note that there is a fork with a change that incorporates inline comments into the generated documentation, but they never attempted to upstream the change. |
Beta Was this translation helpful? Give feedback.
-
Suppose I have a method like follows:
Is there a good way of providing an additional description for the params or the return type? Or do we just have to type that in the standard YARD docs?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions