Sha256: 5f3c7200eebfda2670383d4b20adf23b74d43b232dcccbc72b3a64cafa2788e3

Contents?: true

Size: 440 Bytes

Versions: 4

Compression:

Stored size: 440 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
    end

  end

end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
gettalong-webgen-0.5.8.20090507 lib/webgen/contentprocessor/rdoc.rb
gettalong-webgen-0.5.9.20090620 lib/webgen/contentprocessor/rdoc.rb
gettalong-webgen-0.5.9.20090626 lib/webgen/contentprocessor/rdoc.rb
webgen-0.5.8 lib/webgen/contentprocessor/rdoc.rb