Using the Ruby Yard document tool, can I configure Yard to * not * put methods in alphabetical order?

I am developing a Ruby programming tutorial that I would like to document using Yard . By default, Yard puts all the methods in the module / class in alphabetical order. However, since the methods in each module in the textbook are built on top of each other, I would like to keep them in the order in which I wrote them.

Is there a way to configure Yard to not introduce methods in alphabetical order?

+4
source share
1 answer

The default template does not provide the ability to leave method names unsorted.

Your options are to create your own template or change it by default.

If this helps sort the strings, follow these steps: https://github.com/lsegal/yard/blob/master/templates/default/module/setup.rb#L39

+1
source

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


All Articles