私は、管理している rubygem を RDoc から YARD ドキュメントに切り替えようとしています。ただし、コード内にのみ残す必要があり、ドキュメントには表示されない重要なコメントがコード内にいくつかあります。例えば:
##
# SomeClass documentation here.
#--
# CRITICAL comment that should be in the code but not in the documentation,
# and must be at this particular spot in the code.
#++
# more documentation that follows the critical comment block, but this part
# should be in the generated documentation
class SomeClass
...
end
RDoc は#--and#++ゲートを尊重しますが、YARD は受け入れません。YARD のマークアップで類似のことを行うための構文は (存在する場合) は何ですか?