From: Eric Hodel Date: 2009-09-05T16:10:43+09:00 Subject: Re: Better RDoc Inline Markup On Sep 4, 2009, at 17:59, trans wrote: > On Sep 4, 3:05 pm, Eric Hodel wrote: >> Wait, did you even try it? >> >> $ echo '+ActiveRecord::Base+ +merge!+ +is_a?+ +name=+ +object.call+ >> +:symbol+' | rdoc --pipe >>

>> +ActiveRecord::Base+ merge! is_a? name= >> object.call :symbol >>

> > Hmmm... > > require 'rdoc/markup/simple_markup' > require 'rdoc/markup/simple_markup/to_html' > p = SM::SimpleMarkup.new > h = SM::ToHtml.new > puts p.convert('+ActiveRecord::Base+ +merge!+ +is_a?+ +name=+ > +object.call+ +:symbol+',h) > > produces: > > [...] > > So now I'm thinking RDoc no longer has SM ? And when I require it I am > actually picking up the RDoc built into Ruby 1.8.7, but when I require > 'rdoc' I'm getting the latest Gem I installed. There's no more SM, rdoc 2.x is properly namespaced. See: http://rdoc.rubyforge.org/RDoc/Markup.html