Group: comp.lang.ruby
From: Jari Williamsson
Date: Friday, February 15, 2008 2:06 PM
Subject: Re: Proper way to RDoc markup?

Serg Koren wrote:
> I can't figure this out. Is there a way to inline markup an accessor
> for Rdoc?
>
> That is:
>
> def x
>
> attr_accessor :x # this is an X comment
> attr_reader :y # this is a Y comment
>
> end
>
> I want the inline comments to show up in the Rdoc as part of the
> attribute documentation.

# this is an X comment
attr_accessor :x
# this is a Y comment
attr_reader :y


Best regards,

Jari Williamsson