class GitHub::Markup::RDoc

Public Instance Methods

to_html() click to toggle source
# File lib/vandamme/monkey_patch_markup.rb, line 7
def to_html
  if Gem::Version.new(::RDoc::VERSION) < Gem::Version.new('4.0.0')
    h = ::RDoc::Markup::ToHtml.new
  else
    h = ::RDoc::Markup::ToHtml.new(::RDoc::Options.new)
  end
  h.convert(@content)
end