lib/rbbt/persist.rb in rbbt-util-5.34.26 vs lib/rbbt/persist.rb in rbbt-util-5.34.27
- old
+ new
@@ -146,12 +146,10 @@
when :json
Open.open(path) do |stream|
JSON.parse(stream.read)
end
when :yaml
- Open.open(path) do |stream|
- YAML.load(stream)
- end
+ Misc.load_yaml(path)
when :float
Open.read(path).to_f
when :integer
Open.read(path).to_i
else