Closed
Description
I'm working on seeing if I can get YARD / yard-t2 to recognize 'attributes' based on method properties, rather than a declaration, etc.
Came across the following, which seemed rather odd, as most of their 'readers' operate on a larger collection (children), the attributes hash, etc.
class NamespaceObject < Base
attr_writer :constants, :cvars, :mixins, :child, :meths
attr_writer :class_attributes, :instance_attributes
attr_writer :included_constants, :included_meths
See:
https://github.com/lsegal/yard/blob/master/lib/yard/code_objects/namespace_object.rb#L9
Obviously, I could search the file for instance variables, test it, etc, then generate a PR. But, there are limits to what testing will find, and there may be a purpose that I'm unaware of. Hence, the comment / issue.
Metadata
Metadata
Assignees
Labels
No labels