Module: Webgen::ContentProcessor::RDoc

Defined in:
lib/webgen/content_processor/r_doc.rb

Overview

Converts content in RDoc markup (the native Ruby documentation format) to HTML. Needs the newer RDoc implementation (version >= 4.0.0).

Class Method Summary collapse

Class Method Details

.call(context) ⇒ Object

Convert the content in RDoc markup to HTML.



27
28
29
30
# File 'lib/webgen/content_processor/r_doc.rb', line 27

def self.call(context)
  context.content = ::RDoc::Markup::ToHtml.new(::RDoc::Options.new).convert(context.content)
  context
end