Sha256: daf2d276ab7d68eae58455166909708c321ce742b5aaa521b9ce58c5d933dc91
Contents?: true
Size: 251 Bytes
Versions: 2
Compression:
Stored size: 251 Bytes
Contents
require 'yaml' module MPatch module YAML def save_file(file_path,config_hash) File.open(file_path, 'w+') {|f| f.write(config_hash.to_yaml) } end def load_file(file_path) ::YAML.load(File.open(file_path)) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mpatch-2.2.1 | lib/mpatch/yml.rb |
mpatch-2.1.3 | lib/mpatch/yml.rb |