It is possible to use YARD to document erb templates

Is it possible to use YARD to document templates, or does this require classes in files? I tried to run

binary controllers doc / models / views / index /

but index views are not matched. I see that metadata is being added to additional files in documents, but obviously they don’t want to display comments in the yard. I just want to document the partial elements used in each view.

THX

+4
source share
1 answer

Use yardoc --files FILE1,FILE2,... to specify file templates.

+1
source

Source: https://habr.com/ru/post/1391536/


All Articles