Parent

Methods

Class/Module Index [+]

Quicksearch

Nanoc::Filters::RDoc

Public Class Methods

setup() click to toggle source
# File lib/nanoc/filters/rdoc.rb, line 7
def self.setup
  gem 'rdoc', '~> 4.0'
  super
end

Public Instance Methods

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

Runs the content through [RDoc::Markup](rdoc.rubyforge.org/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 18
def run(content, params={})
  options = ::RDoc::Options.new
  to_html = ::RDoc::Markup::ToHtml.new(options)
  ::RDoc::Markup.new.convert(content, to_html)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.