yard-rails

Description

A YARD plugin for parsing the custom Ruby syntax added by Rails.

If you are using YARD >= 0.6, you will need to enable the plugin manually. Add the following line to your .yardopts file:

--plugin yard-rails

For older versions of YARD, all plugins are loaded automatically.

Features

Parses the following statements:

cattr_reader :attr

cattr_writer :attr

cattr_accessor :attr

mattr_reader :attr

mattr_writer :attr

mattr_accessor :attr

Requirements

Install

$ sudo gem install yard-rails

License

See LICENSE.txt for license information.

Thanks

Thanks to Postmodern's yard-dm gem, which provided much of the framework I've used to package yard-rails.