1

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
elstgav
  • 1,001
  • 7
  • 20

1 Answers1

0

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