class YamlWrapper

Public Instance Methods

dump(filepath, structure) click to toggle source
# File lib/ceedling/yaml_wrapper.rb, line 11
def dump(filepath, structure)
  File.open(filepath, 'w') do |output|
    YAML.dump(structure, output)
  end
end
load(filepath) click to toggle source
# File lib/ceedling/yaml_wrapper.rb, line 7
def load(filepath)
  return YAML.load(ERB.new(File.read(filepath)).result)
end