lib/github/markup/rdoc.rb in github-markup-1.3.3 vs lib/github/markup/rdoc.rb in github-markup-1.4.0

- old
+ new

@@ -1,21 +1,26 @@ +require "github/markup/implementation" require "rdoc" require "rdoc/markup/to_html" module GitHub module Markup - class RDoc - def initialize(content) - @content = content + class RDoc < Implementation + def initialize + super /rdoc/ end - def to_html + def render(content) if ::RDoc::VERSION.to_i >= 4 h = ::RDoc::Markup::ToHtml.new(::RDoc::Options.new) else h = ::RDoc::Markup::ToHtml.new end - h.convert(@content) + h.convert(content) + end + + def name + "rdoc" end end end end