Class: ErbWrapper
Instance Method Summary collapse
Instance Method Details
#generate_file(template, data, output_file) ⇒ Object
11 12 13 14 15 |
# File 'lib/ceedling/erb_wrapper.rb', line 11 def generate_file(template, data, output_file) File.open(output_file, "w") do |f| f << ERB.new(template, trim_mode: "<>").result(binding) end end |