Class: Pressman::Builders::LatexBuilder
- Defined in:
- lib/pressman/builders/latex_builder.rb
Instance Attribute Summary
Attributes inherited from Builder
Instance Method Summary collapse
-
#initialize ⇒ LatexBuilder
constructor
A new instance of LatexBuilder.
Methods inherited from Builder
Constructor Details
#initialize ⇒ LatexBuilder
Returns a new instance of LatexBuilder.
5 6 7 8 9 10 11 |
# File 'lib/pressman/builders/latex_builder.rb', line 5 def initialize File.delete("#{@@config['title']}.tex") if File.exist?("#{@@config['title']}.tex") Dir.glob("*/*.textile") do |file| @filename = File.basename(file, ".textile") File.open("#{@@config['title']}.tex", 'a') {|f| f.write(render("templates/layout.#{extension}.erb")) } end end |