module Webgen::ContentProcessor::RDoc

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

Public Class Methods

call(context) click to toggle source

Convert the content in RDoc markup to HTML.

# File lib/webgen/content_processor/r_doc.rb, line 26
def self.call(context)
  context.content = ::RDoc::Markup::ToHtml.new(::RDoc::Options.new).convert(context.content)
  context
end