Sha256: 64c9b4f6ce94c590694bf809c8029b226dcf40f2b30a7a852d9cd34f5538f06f
Contents?: true
Size: 280 Bytes
Versions: 2
Compression:
Stored size: 280 Bytes
Contents
require 'yaml' require 'erb' class YamlWrapper def load(filepath) return YAML.load(ERB.new(File.read(filepath)).result) end def dump(filepath, structure) File.open(filepath, 'w') do |output| YAML.dump(structure, output) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ceedling-0.29.1 | lib/ceedling/yaml_wrapper.rb |
ceedling-0.29.0 | lib/ceedling/yaml_wrapper.rb |