So I’ve had a browse over source code on google and can’t find an
example of what I was trying to do. Just in case there’s no response
since my question wasn’t clear I want to use rdoc and document my
attr_accessors similar too :
id:: an identifier
price:: total cost
attr_accessor :id, :price
I’d assumed rdoc would handle this similarly to documenting a methods
parameters, but instead the documentation comments are repeated for each
symbol.
While I can, of course, use 1 line per symbol I find it hard to believe
that rdoc would force such a style…
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.