Dave Thomas wrote:
> 
> 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 ...

However, if someone simply runs rdoc on the source, the results won't be 
the same (i.e., what in this case Gavin prefers)

And how can someone get
  attr_reader :foo

to appear with the method definitions?


Thanks,

James