lib/vimgolf/config.rb in vimgolf-0.2.0 vs lib/vimgolf/config.rb in vimgolf-0.3.0
- old
+ new
@@ -8,17 +8,17 @@
def put_path
path + "/put"
end
def save(conf)
- File.open(path + '/config.json', 'w') do |f|
- f.puts JSON.generate(conf)
+ File.open(path + '/config.yaml', 'w') do |f|
+ YAML.dump(conf, f)
end
end
def load
- File.open(path + '/config.json', 'r') do |f|
- JSON.parse(f.read)
+ File.open(path + '/config.yaml', 'r') do |f|
+ YAML.load(f)
end
end
end
end
end