tinyusb/tests/vendor/ceedling/lib/erb_wrapper.rb
hathach bc735bbe22 - add ceedling/cmock/unity as testing framework and support
- unified makefile project for the whole repos
- new separate project for tests
2012-12-27 02:52:40 +07:00

9 lines
191 B
Ruby

require 'erb'
class ErbWrapper
def generate_file(template, data, output_file)
File.open(output_file, "w") do |f|
f << ERB.new(template, 0, "<>").result(binding)
end
end
end