Sha256: 8f1a4aa1ed7dc589bec644d64efabb77cc559ecc003c0754e6b2f7d98ca5bfb2

Contents?: true

Size: 414 Bytes

Versions: 11

Compression:

Stored size: 414 Bytes

Contents

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

11 entries across 11 versions & 2 rubygems

Version Path
gettalong-webgen-0.5.4.20080929 lib/webgen/contentprocessor/rdoc.rb
gettalong-webgen-0.5.5.20081001 lib/webgen/contentprocessor/rdoc.rb
gettalong-webgen-0.5.5.20081010 lib/webgen/contentprocessor/rdoc.rb
gettalong-webgen-0.5.5.20081012 lib/webgen/contentprocessor/rdoc.rb
gettalong-webgen-0.5.6.20081020 lib/webgen/contentprocessor/rdoc.rb
webgen-0.5.3 lib/webgen/contentprocessor/rdoc.rb
webgen-0.5.1 lib/webgen/contentprocessor/rdoc.rb
webgen-0.5.2 lib/webgen/contentprocessor/rdoc.rb
webgen-0.5.4 lib/webgen/contentprocessor/rdoc.rb
webgen-0.5.5 lib/webgen/contentprocessor/rdoc.rb
webgen-0.5.6 lib/webgen/contentprocessor/rdoc.rb