Class: Malt::Formats::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, #parse_type_and_data, #refile, register, #render, #subtype, #text, #to, #to_s, #type

Instance Method Details

#htmlObject



23
24
25
# File 'lib/malt/formats/rdoc.rb', line 23

def html
  render_engine.render(:text=>text, :file=>file, :format=>:html)
end

#rdocObject



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

def rdoc
  text
end

#to_htmlObject



28
29
30
31
# File 'lib/malt/formats/rdoc.rb', line 28

def to_html
  opts = options.merge(:text=>html, :file=>refile(:html), :type=>:html)
  HTML.new(opts)
end

#to_rdocObject



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

def to_rdoc
  self
end