Sha256: 361eb894c439cd45a8417003fd873936417a057945f4257d809b1d6f341b5d35
Contents?: true
Size: 259 Bytes
Versions: 2
Compression:
Stored size: 259 Bytes
Contents
require 'yaml' module MPatch::Extend 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.3.0 | lib/mpatch/yml.rb |
mpatch-2.2.4 | lib/mpatch/yml.rb |