How do I tell yard to document class attributes that are set up with Rails' class_attribute
method? Currently it's just ignoring them.
An example:
class Base
class_attribute :defaults
self.defaults = { foo: 'bar' }
end
How do I tell yard to document class attributes that are set up with Rails' class_attribute
method? Currently it's just ignoring them.
An example:
class Base
class_attribute :defaults
self.defaults = { foo: 'bar' }
end
I've found that using a group tag is a good solution
# @!group Class Attributes
# @!attribute [rw]
# Stores some value
class_attribute :my_atttribute
# @!endgroup