cable_ready icon indicating copy to clipboard operation
cable_ready copied to clipboard

Write YARD docs for public API

Open julianrubisch opened this issue 5 years ago • 7 comments

This would help with code intellisense tool such as Language Servers (Solargraph)

julianrubisch avatar Jan 19 '21 07:01 julianrubisch

I don't know anything about YARD. How would we get from A to B? Is there an automated process or would someone have to convert everything to a new format?

leastbad avatar Jan 19 '21 17:01 leastbad

Annotated source code... I started a bit exemplary docs in #100

julianrubisch avatar Jan 19 '21 18:01 julianrubisch

We should probably make sure it's compatible with sord for example so we also get RBS annotations for free! 😊

marcoroth avatar Jan 19 '21 18:01 marcoroth

That’s one of my intended side effects, yep

julianrubisch avatar Jan 19 '21 18:01 julianrubisch

OH, I had no idea that the structure and format of those comments was significant.

Yeah, this doesn't seem painful at all. Good call, Julian!

leastbad avatar Jan 19 '21 18:01 leastbad

YARD + Solargraph = *chef's kiss*

jaredcwhite avatar Jun 10 '21 17:06 jaredcwhite

I still think this could be of value, and should be a good practice for writing libraries in general.

The problem is tooling - does anyone know of something that helps me remember the YARD syntax? 😬

julianrubisch avatar Feb 15 '23 07:02 julianrubisch