Parent

Methods

Class/Module Index [+]

Quicksearch

Webgen::ContentProcessor::RDoc

Converts content in RDoc markup (the native Ruby documentation format) to HTML. Needs the newer RDoc implementation provided as rdoc gem!

Public Instance Methods

call(context) click to toggle source

Convert the content in RDoc markup to HTML.

# File lib/webgen/contentprocessor/rdoc.rb, line 9
def call(context)
  require 'rdoc/markup/to_html'
  context.content = ::RDoc::Markup::ToHtml.new.convert(context.content)
  context
rescue LoadError
  raise Webgen::LoadError.new('rdoc/markup/to_html', self.class.name, context.dest_node, 'rdoc')
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.