Well, in its simplest, fastest and most dirty form, the solution is easy - just use any custom (unknown for the yard) tag name. For instance:
The only problem here is that the kernel will warn you about every occurrence of @internal_note:
[warn]: Unknown tag @internal_note in file ... near line xxx [warn]: Unknown tag @internal_note in file ... near line yyy ...
I really think that should be the official way to suppress unwanted warnings, but unfortunately I could not find it. However, you can try one of the following:
yardoc -q # problem: will also suppress useful information.you can create a yardinit.rb file with the following contents:
YARD::Tags::Library.define_tag('INTERNAL NOTE', :internal_note)
and then generate documents using
yardoc -e './yardinit.rb'
there is a yard plugin to suppress all unknown tag warnings https://github.com/rubyworks/yard-shutup
it doesnโt look very lively and the gem install yard-shutup doesnโt work, but you can install it manually and try to try
source share