Class: GitHub::Markup::RDoc
- Inherits:
-
Implementation
- Object
- Implementation
- GitHub::Markup::RDoc
- Defined in:
- lib/github/markup/rdoc.rb
Instance Attribute Summary
Attributes inherited from Implementation
Instance Method Summary collapse
-
#initialize ⇒ RDoc
constructor
A new instance of RDoc.
- #name ⇒ Object
- #render(filename, content, options: {}) ⇒ Object
Methods inherited from Implementation
Constructor Details
#initialize ⇒ RDoc
Returns a new instance of RDoc.
8 9 10 |
# File 'lib/github/markup/rdoc.rb', line 8 def initialize super(/rdoc/, ["RDoc"]) end |
Instance Method Details
#name ⇒ Object
21 22 23 |
# File 'lib/github/markup/rdoc.rb', line 21 def name "rdoc" end |
#render(filename, content, options: {}) ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/github/markup/rdoc.rb', line 12 def render(filename, content, options: {}) 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 |