Sha256: 75d2e32ed47b7a9b22954cdb08b1c1bd1f8c1089abea46e6a27725c840ce4c36
Contents?: true
Size: 567 Bytes
Versions: 3
Compression:
Stored size: 567 Bytes
Contents
# -*- encoding: utf-8 -*- module Webgen::ContentProcessor # Converts content in RDoc markup (the native Ruby documentation format) to HTML. Needs the newer # RDoc implementation provided as +rdoc+ gem! class RDoc # Convert the content in RDoc markup to HTML. 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.alcn, 'rdoc') end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
webgen-0.5.11 | lib/webgen/contentprocessor/rdoc.rb |
webgen-0.5.10 | lib/webgen/contentprocessor/rdoc.rb |
webgen-0.5.9 | lib/webgen/contentprocessor/rdoc.rb |