Files
tinyUSB/tests_obsolete/vendor/ceedling/lib/yaml_wrapper.rb
2019-06-06 21:33:55 +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