Class: Malt::Format::Latex
Instance Attribute Summary
Attributes inherited from Abstract
#options
Instance Method Summary
collapse
Methods inherited from Abstract
#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
12
13
14
|
# File 'lib/malt/formats/latex.rb', line 12
def latex(*)
text
end
|
22
23
24
|
# File 'lib/malt/formats/latex.rb', line 22
def pdf(*)
raise "not implemented yet"
end
|
17
18
19
|
# File 'lib/malt/formats/latex.rb', line 17
def to_latex(*)
self
end
|
27
28
29
30
31
|
# File 'lib/malt/formats/latex.rb', line 27
def to_pdf(*)
text = pdf
opts = options.merge(:text=>text, :file=>refile(:pdf), :type=>:pdf)
PDF.new(opts)
end
|