Class: Malt::Engines::RDoc
- Defined in:
- lib/malt/engines/rdoc.rb
Overview
RDoc template.
http://rdoc.rubyforge.org/
It’s suggested that your program require ‘rdoc/markup’ and ‘rdoc/markup/to_html’ at load time when using this template engine.
Instance Attribute Summary
Attributes inherited from Abstract
Instance Method Summary collapse
-
#render(params) ⇒ Object
Convert rdoc text to html.
Methods inherited from Abstract
#cache?, #compile, default, #initialize, register
Constructor Details
This class inherits a constructor from Malt::Engines::Abstract
Instance Method Details
#render(params) ⇒ Object
Convert rdoc text to html.
17 18 19 20 21 22 23 24 25 26 |
# File 'lib/malt/engines/rdoc.rb', line 17 def render(params) text = params[:text] format = params[:format] case format when :html, nil html_engine.convert(text).to_s else super(params) end end |