Module: Fill

Defined in:
lib/makeme/fill.rb

Class Method Summary collapse

Class Method Details

.fill(working_directory, absolute_file_path, guess_data, template_contents, options) ⇒ Object



6
7
8
9
10
11
# File 'lib/makeme/fill.rb', line 6

def self.fill(working_directory, absolute_file_path, guess_data, template_contents, options)
  template = ERB.new template_contents, nil, "%"
  fill_helpers = FillHelpers.new(working_directory, absolute_file_path, guess_data)

  template.result(fill_helpers.get_binding)
end