Sha256: ed0d0de2ee2169165bcc0695304124b3e9d8d9de9fd75992243838237587370e
Contents?: true
Size: 261 Bytes
Versions: 2
Compression:
Stored size: 261 Bytes
Contents
require 'yaml' module MPatch module YAML def self.save_file(file_path,config_hash) File.open(file_path, 'w+') {|f| f.write(config_hash.to_yaml) } end def self.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.1.0 | lib/mpatch/yml.rb |
mpatch-2.0.1 | lib/mpatch/yml.rb |