@!attribute [r | w | rw] attribute_name
Indented attribute docstring
Note: This directive should only be used if there is no explicit attr_* declaration for the attribute in > any source files (i.e., the attribute is declared dynamically via meta-programming). In all other cases, add documentation to the attribute declaration itself.
The correct documentation for an attribute thus looks like:
# @return [MissionType] Mission to work with
attr_reader :mission
And indeed it works well with Yard.
But the extension generates this comment:
# @!attribute [r] mission
# @return [MissionType] Mission to work with
attr_reader :mission
And this is not understood by Yard.
Would it be possible to update the snippet in this sense?
The YARD documentation states that:
The correct documentation for an attribute thus looks like:
And indeed it works well with Yard.
But the extension generates this comment:
And this is not understood by Yard.
Would it be possible to update the snippet in this sense?
Thanks for the very useful work!