Class: Webgen::ContentProcessor::RDoc
- Inherits:
-
Object
- Object
- Webgen::ContentProcessor::RDoc
- Defined in:
- lib/webgen/contentprocessor/rdoc.rb
Overview
Converts content in RDoc markup (the native Ruby documentation format) to HTML. Needs the newer RDoc implementation provided as rdoc
gem!
Instance Method Summary collapse
-
#call(context) ⇒ Object
Convert the content in RDoc markup to HTML.
Instance Method Details
#call(context) ⇒ Object
Convert the content in RDoc markup to HTML.
10 11 12 13 14 15 |
# File 'lib/webgen/contentprocessor/rdoc.rb', line 10 def call(context) require 'rdoc/markup/to_html' context.content = ::RDoc::Markup::ToHtml.new.convert(context.content) context end |