我在一个类中创建了两个 attr_writer,我们称它们foo
为bar
.
# @attr_writer [String] foo Description of a writeonly attribute
class Baz
attr_writer :foo, :bar
# @return ....
def foo ; end
def bar ; end
end
YARD 不会呈现foo
writer 文档。我认为那是因为我手动创建了读者。
有没有办法解决这个问题?
注意:我也尝试过@!attribute
,但结果相同。