From: Dave Thomas Date: 2004-11-07T12:36:40+09:00 Subject: Re: [RDOC] Documenting accessor methods as methods On Nov 6, 2004, at 18:35, Gavin Kistner wrote: > And vice-versa...I frequently do something like: > > # The foo attribute > attr_accessor :foo > def foo=(n) #:nodoc: > #...special setter code necessary > end > > Specifically so that RDoc will document 'foo' as a RW attribute. The > downside of the above is that ruby complains about the redefinition of > #foo= if warnings are enabled. > > What I'm saying is that I'd like a way to tell RDoc to document a > certain method as an attribute. try rdoc --accessor foo ... Cheers Dave