Method: PDK::TemplateFile#initialize
- Defined in:
- lib/pdk/template_file.rb
#initialize(template_file, data = {}) ⇒ TemplateFile
Initialises the TemplateFile object with the path to the template file and the data to be used when rendering the template.
the template when rendering. the template as an instance variable ‘@configs` in order to maintain compatibility with modulesync.
16 17 18 19 20 21 22 23 24 |
# File 'lib/pdk/template_file.rb', line 16 def initialize(template_file, data = {}) @template_file = template_file if data.key?(:configs) @configs = data[:configs] end super(data) end |