Class: GitHub::Markup::RDoc
- Inherits:
-
Object
- Object
- GitHub::Markup::RDoc
- Defined in:
- lib/github/markup/rdoc.rb
Instance Method Summary collapse
-
#initialize(content) ⇒ RDoc
constructor
A new instance of RDoc.
- #to_html ⇒ Object
Constructor Details
#initialize(content) ⇒ RDoc
Returns a new instance of RDoc.
7 8 9 |
# File 'lib/github/markup/rdoc.rb', line 7 def initialize(content) @content = content end |
Instance Method Details
#to_html ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/github/markup/rdoc.rb', line 11 def to_html if ::RDoc::VERSION.to_i >= 4 h = ::RDoc::Markup::ToHtml.new(::RDoc::Options.new) else h = ::RDoc::Markup::ToHtml.new end h.convert(@content) end |