How can I document config_accessor methods in YARD with TomDoc syntax?

96 views Asked by At

I'm working on code that includes ActiveSupport's Configurable module and I'm trying to document the config accessors.

Anybody know how to do so in YARD Tomdoc?

I've tried the following but it doesn't seem to render anything in the docs.

class MyConf

  include ActiveSupport::Configurable

  # Is this configuration awesome? (defaults: true)
  config_accessor(:is_awesome) { true }

end
1

There are 1 answers

0
bodacious On

This works!

class MyConf

  include ActiveSupport::Configurable

  ##
  # Is this configuration awesome? (defaults: true)
  config_accessor(:is_awesome) { true }

end