Class: RDocSupport::RDocFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/rdocsupport.rb

Instance Method Summary collapse

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_htmlObject



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