lib/mpatch/yml.rb in mpatch-2.3.0 vs lib/mpatch/yml.rb in mpatch-2.4.0

- old
+ new

@@ -1,15 +1,22 @@ require 'yaml' -module MPatch::Extend +module MPatch - module YAML - def save_file(file_path,config_hash) - File.open(file_path, 'w+') {|f| f.write(config_hash.to_yaml) } - end + module Extend - def load_file(file_path) - ::YAML.load(File.open(file_path)) + 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 + + require File.join 'mpatch','injector' + end \ No newline at end of file