lsegal/yard — Issue #394: Mixed @api tags for attribute writer and reader
Author: dominikh
Created: 2011-10-12 22:28:29+00:00
State: open

Consider the following example class:

class Foo
attr_reader :foo
# @api private
attr_writer :foo
end

The desired result would be that the attribute gets documented as read only, but YARD won't make that information available in HTML output. Instead, the attribute gets documented as read/write. Even using a query like '@api.text != "private"' will not change that behaviour; the attribute still shows up as read/write.