Class: Malt::Formats::RDoc
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
#html ⇒ Object
23
24
25
|
# File 'lib/malt/formats/rdoc.rb', line 23
def html
render_engine.render(:text=>text, :file=>file, :format=>:html)
end
|
#rdoc ⇒ Object
13
14
15
|
# File 'lib/malt/formats/rdoc.rb', line 13
def rdoc
text
end
|
#to_html ⇒ Object
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_rdoc ⇒ Object
18
19
20
|
# File 'lib/malt/formats/rdoc.rb', line 18
def to_rdoc
self
end
|