Malt  Malt::Engine::RDoc

[Validate]
Generated with RDazzle Newfish 1.4.0

RDoc

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.

Public Instance Methods

render(params) click to toggle source

Convert rdoc text to html.

    # File lib/malt/engines/rdoc.rb, line 17
17:     def render(params)
18:       text = params[:text]
19:       into = params[:to]
20:       case into
21:       when :html, nil
22:         html_engine.convert(text).to_s
23:       else
24:         super(params)
25:       end
26:     end

Private Instance Methods

html_engine() click to toggle source
    # File lib/malt/engines/rdoc.rb, line 39
39:       def html_engine
40:         @html_engine ||= ::RDoc::Markup::ToHtml.new
41:       end
initialize_engine() click to toggle source

Load rdoc makup library if not already loaded.

    # File lib/malt/engines/rdoc.rb, line 31
31:       def initialize_engine
32:         return if defined?(::RDoc::Markup)
33:         require 'rubygems' # hack
34:         require_library 'rdoc/markup'
35:         require_library 'rdoc/markup/to_html'
36:       end

Disabled; run with --debug to generate this.