ruby_parser gives you this with the #comments method.

As for the get_args/parameters method, I think that would be
fantastic.  This sort of thing would make something like a new RDoc/a
live RDoc embedded in an IDE much easier.

--Jeremy

On Mon, Nov 10, 2008 at 7:11 PM, Roger Pack <rogerpack2005 / gmail.com> wrote:
>> One could use it for documenting external interfaces. Eg. A command
>> line parser could map command line to method definition and provide
>> help information based on these parameter names.
>>
>> Just a thought.
>
> Thinking out loud, would also be nice to have access to the
> 'docstring' of a function [a la python], thus allowing dynamically
> generated methods to have their own documentation lookup.
>
> This and the arguments would be possible if you had access to the AST:)
>
> Note also that the functionality merb wants is possibly available via
> RubyVM::InstructionSequence.
> Just $0.02 again though they're not worth that much.
> Take care.
> -=R
>
>



-- 
http://jeremymcanally.com/
http://entp.com/
http://omgbloglol.com

My books:
http://manning.com/mcanally/
http://humblelittlerubybook.com/ (FREE!)