lib/mpatch/yml.rb in mpatch-1.3.0 vs lib/mpatch/yml.rb in mpatch-2.0.0
- old
+ new
@@ -1,11 +1,15 @@
require 'yaml'
-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))
+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
+end
\ No newline at end of file