Class: RDocSupport::RDocFormatter
- Inherits:
-
Object
- Object
- RDocSupport::RDocFormatter
- Defined in:
- lib/rdocsupport.rb
Instance Method Summary collapse
-
#initialize(text) ⇒ RDocFormatter
constructor
A new instance of RDocFormatter.
- #to_html ⇒ Object
Constructor Details
#initialize(text) ⇒ RDocFormatter
Returns a new instance of RDocFormatter.
141 142 143 |
# File 'lib/rdocsupport.rb', line 141 def initialize(text) @text = text end |
Instance Method Details
#to_html ⇒ Object
145 146 147 148 149 |
# File 'lib/rdocsupport.rb', line 145 def to_html markup = RDocMarkup.new h = HyperLinkHtml.new markup.convert(@text, h) end |