rdoc and the "--accessor" option
Posted
by Brian Ploetz
on Stack Overflow
See other posts from Stack Overflow
or by Brian Ploetz
Published on 2010-04-10T05:12:18Z
Indexed on
2010/04/10
5:23 UTC
Read the original article
Hit count: 403
rdoc --help says:
--accessor, -A accessorname[,..]
comma separated list of additional class methods
that should be treated like 'attr_reader' and
friends. Option may be repeated. Each accessorname
may have '=text' appended, in which case that text
appears where the r/w/rw appears for normal accessors.
Does anyone have any working examples of doing this (both the accessor method definition and the rdoc command invocation)? No matter what combination I try, my accessors will not show up in the RDoc output.
Thanks.
© Stack Overflow or respective owner