Sha256: 50827d06f5180e85342d806e333ad278882051ad7b01dad80b309c2743506ec3

Contents?: true

Size: 460 Bytes

Versions: 1

Compression:

Stored size: 460 Bytes

Contents

# https://github.com/github/markup/pull/214
# require "github/markup/rdoc"

module GitHub
    module Markup
          class RDoc
            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
          end
    end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vandamme-0.0.6 lib/vandamme/monkey_patch_markup.rb