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 26 def self.call(context) 27 context.content = ::RDoc::Markup::ToHtml.new(::RDoc::Options.new).convert(context.content) 28 context 29 end