class Malt::Format::RDoc

Public Instance Methods

html(*data, &content) click to toggle source
# File lib/malt/formats/rdoc.rb, line 23
def html(*data, &content)
  render_into(:html, *data, &content)
  #render_engine.render(:format=>:html, :text=>text, :file=>file)
end
rdoc(*) click to toggle source
# File lib/malt/formats/rdoc.rb, line 13
def rdoc(*)
  text
end
to_html(*) click to toggle source
# File lib/malt/formats/rdoc.rb, line 29
def to_html(*)
  opts = options.merge(:type=>:html, :text=>html, :file=>refile(:html))
  HTML.new(opts)
end
to_rdoc(*) click to toggle source
# File lib/malt/formats/rdoc.rb, line 18
def to_rdoc(*)
  self
end

Private Instance Methods

render_engine() click to toggle source
# File lib/malt/formats/rdoc.rb, line 37
def render_engine
  @render_engine ||= Malt::Engine::RDoc.new(options)
end