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 |
# File 'lib/github/markup/rdoc.rb', line 11 def to_html h = ::RDoc::Markup::ToHtml.new h.convert(@content) end |