Class: Indoctrinatr::Tools::TemplatePackDefaultValuesCompiler
- Inherits:
-
Object
- Object
- Indoctrinatr::Tools::TemplatePackDefaultValuesCompiler
- Includes:
- PdfGenerator, TemplatePackHelpers
- Defined in:
- lib/indoctrinatr/tools/template_pack_default_values_compiler.rb
Instance Attribute Summary collapse
-
#template_pack_name ⇒ Object
Returns the value of attribute template_pack_name.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(template_pack_name, keep_aux_files = false) ⇒ TemplatePackDefaultValuesCompiler
constructor
A new instance of TemplatePackDefaultValuesCompiler.
- #pdf_exists? ⇒ Boolean
Methods included from PdfGenerator
Methods included from TemplatePackHelpers
#assets_path, #check_for_folder, #config_file_path, #latex_log_file_destination, #pack_documentation_dir_path, #pack_documentation_examples_dir_path, #pack_technical_documentation_file_path, #path_name, #pdf_with_default_values_file_path, #pdf_with_fieldname_values_file_path, #tex_file_path, #tex_with_default_values_file_path, #tex_with_fieldname_values_file_path
Constructor Details
#initialize(template_pack_name, keep_aux_files = false) ⇒ TemplatePackDefaultValuesCompiler
Returns a new instance of TemplatePackDefaultValuesCompiler.
13 14 15 16 |
# File 'lib/indoctrinatr/tools/template_pack_default_values_compiler.rb', line 13 def initialize template_pack_name, keep_aux_files = false @template_pack_name = template_pack_name @keep_aux_files = keep_aux_files end |
Instance Attribute Details
#template_pack_name ⇒ Object
Returns the value of attribute template_pack_name.
11 12 13 |
# File 'lib/indoctrinatr/tools/template_pack_default_values_compiler.rb', line 11 def template_pack_name @template_pack_name end |
Instance Method Details
#call ⇒ Object
18 19 20 21 22 |
# File 'lib/indoctrinatr/tools/template_pack_default_values_compiler.rb', line 18 def call check_for_folder compile_tex_file rename_if_necessary end |
#pdf_exists? ⇒ Boolean
24 25 26 27 28 |
# File 'lib/indoctrinatr/tools/template_pack_default_values_compiler.rb', line 24 def pdf_exists? check_for_folder file_path = pdf_with_default_values_file_path ConfigurationExtractor.new(template_pack_name).call File.exist? file_path end |