Module: Clamsy

Extended by:
FileSystemSupport
Defined in:
lib/clamsy.rb,
lib/clamsy/tenjin.rb,
lib/clamsy/base_printer.rb,
lib/clamsy/configuration.rb,
lib/clamsy/cups_pdf_printer.rb,
lib/clamsy/template_open_doc.rb,
lib/clamsy/file_system_support.rb,
lib/clamsy/jod_converter_printer.rb

Defined Under Namespace

Modules: Configuration, FileSystemSupport, Tenjin Classes: BasePrinter, BundledFileConfig, ConfigFileSettingNotSupportedError, CupsPdfPrinter, FileNotFoundError, ImplementationNotFoundError, JODConverterPrinter, OofficeServerNotStartedError, OpenDoc, PlatformNotSupportedError, PrinterNotFoundError, RenderedDocContentIsCorruptedError, TemplateDocContentIsCorruptedError, TemplateDocIsCorruptedError, TemplateDocIsNotFoundError, TemplateOpenDoc, UserFileConfig, UserProcConfig

Constant Summary collapse

ROOT =
File.expand_path(File.dirname(__FILE__))

Class Method Summary collapse

Methods included from FileSystemSupport

file_must_exist!, tmp_file, trash_tmp_files

Class Method Details

.configure {|config| ... } ⇒ Object

Yields:

  • (config)


15
16
17
# File 'lib/clamsy.rb', line 15

def configure(&blk)
  yield(config)
end

.process(contexts, template_doc, final_pdf, &blk) ⇒ Object



19
20
21
22
# File 'lib/clamsy.rb', line 19

def process(contexts, template_doc, final_pdf, &blk)
  block_given? && configure(&blk)
  generate_pdf(contexts, template_doc, final_pdf)
end