class Nanoc::Filters::RDoc

@api private

Public Instance Methods

run(content, _params = {}) click to toggle source

Runs the content through [RDoc::Markup](docs.seattlerb.org/rdoc/RDoc/Markup.html). This method takes no options.

@param [String] content The content to filter

@return [String] The filtered content

# File lib/nanoc/filters/rdoc.rb, line 16
def run(content, _params = {})
  options = ::RDoc::Options.new
  to_html = ::RDoc::Markup::ToHtml.new(options)
  ::RDoc::Markup.new.convert(content, to_html)
end