Class: Malt::Format::RDoc

Inherits:
Abstract show all
Defined in:
lib/malt/formats/rdoc.rb

Instance Attribute Summary

Attributes inherited from Abstract

#options

Instance Method Summary collapse

Methods inherited from Abstract

#default, #engine, engine, extensions, #extensions, #file, file_extension, #file_read, #file_type, #parse_type_from_data, #refile, register, #render, #render_into, #rendering_parameters, #scope_vs_data, #subtype, #text, #to, #to_default, #to_s, #type, #with, #with!

Instance Method Details

#html(*data, &content) ⇒ Object



23
24
25
26
# 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

#rdocObject



13
14
15
# File 'lib/malt/formats/rdoc.rb', line 13

def rdoc(*)
  text
end

#to_htmlObject



29
30
31
32
# 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_rdocObject



18
19
20
# File 'lib/malt/formats/rdoc.rb', line 18

def to_rdoc(*)
  self
end