class GitHub::Markup::RDoc
Public Class Methods
new()
click to toggle source
Calls superclass method
GitHub::Markup::Implementation::new
# File lib/github/markup/rdoc.rb, line 8 def initialize super(/rdoc/, ["RDoc"]) end
Public Instance Methods
name()
click to toggle source
# File lib/github/markup/rdoc.rb, line 25 def name "rdoc" end
render(filename, content, options: {})
click to toggle source
# File lib/github/markup/rdoc.rb, line 12 def render(filename, content, options: {}) # RDoc 4-7 require positional Options; RDoc 8 uses keyword options. # Each run covers only the installed RDoc's branch; CI tests both. # simplecov:disable if (4...8).cover?(::RDoc::VERSION.to_i) h = ::RDoc::Markup::ToHtml.new(::RDoc::Options.new) else h = ::RDoc::Markup::ToHtml.new end # simplecov:enable h.convert(content) end