tinyusb/tests/vendor/ceedling/lib/yaml_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

17 lines
233 B
Ruby

require 'yaml'
class YamlWrapper
def load(filepath)
return YAML.load(File.read(filepath))
end
def dump(filepath, structure)
File.open(filepath, 'w') do |output|
YAML.dump(structure, output)
end
end
end