From: Jeremy McAnally Date: 2008-02-16T06:06:25+09:00 Subject: Re: Proper way to RDoc markup? not quite I don't think that's possible. Unless you want to hack on the RDoc parser, that is. What's the difference between what Jari offered and inline comments? --Jeremy On Fri, Feb 15, 2008 at 3:30 PM, Serg Koren wrote: > Not quite what i wanted. I wanted to capture inline comments. i know > that I can capture standalone line comments. > > Thanks though. > > On Feb 15, 2008, at 3:06 PM, Jari Williamsson wrote: > > > 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 > > > > > -- http://www.jeremymcanally.com/ My books: Ruby in Practice http://www.manning.com/mcanally/ My free Ruby e-book http://www.humblelittlerubybook.com/ My blogs: http://www.mrneighborly.com/ http://www.rubyinpractice.com/