Class: Indoctrinatr::Tools::TemplateDocumentationContent

Inherits:
ContentForTexFiles show all
Defined in:
lib/indoctrinatr/tools/template_documentation_content.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from ContentForTexFiles

#_build_from_configuration, #customized_output_file_name, #retrieve_binding, #template_asset_path, #textile2latex

Constructor Details

#initialize(template_pack_name, configuration) ⇒ TemplateDocumentationContent

Overwrite the initialize method because the content is built up much more complex than for the other ContentForTexFile children.



8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/indoctrinatr/tools/template_documentation_content.rb', line 8

def initialize(template_pack_name, configuration)
  super(configuration)

  @configuration = configuration
  @template_pack_name = template_pack_name
  @list_of_files = print_dirtree_style @template_pack_name
  @attributes = configuration.attributes_as_hashes_in_array # we need: name, presentation, default_value, description
  @template_name = configuration.template_name
  @files = read_template_files_content
  @default_values_pdf_path = default_values_example
  @pdf_with_field_names_path = fieldname_values_example
end

Instance Attribute Details

#list_of_filesObject

Returns the value of attribute list_of_files.



4
5
6
# File 'lib/indoctrinatr/tools/template_documentation_content.rb', line 4

def list_of_files
  @list_of_files
end

#template_pack_nameObject

Returns the value of attribute template_pack_name.



4
5
6
# File 'lib/indoctrinatr/tools/template_documentation_content.rb', line 4

def template_pack_name
  @template_pack_name
end