How to use the YARD server to show private method?

1.2k Views Asked by At

My first question I found the --private switch is not work for yard server, so how to make it work?

Second, I noticed that --private switch works for yard doc, if I choose to use the yard doc to generate doc files instead of using the yard server, How to make the rendering document have the frame (side bar)

1

There are 1 best solutions below

0
On

Answering your second question: You can create a .yardopts file with --private and yard server will respect it.

One caveat is that after documentations is generated for a method, if you subsequently make it private you will need to delete the cache (rm -rf .yardoc) then restart yard server.