lib/forj-config.rb in forj-0.0.48 vs lib/forj-config.rb in forj-1.0.0
- old
+ new
@@ -62,21 +62,21 @@
return yVal
end
p=p.flatten
if p.length() == 1
if not yVal.nil?
- if value
+ if not value.nil?
yVal[p[0]] = value
else
yVal.delete(p[0])
end
return yVal
end
- if value
- ret = { p[0] => value }
- else
- ret = {}
- end
+ #~ if value
+ ret = { p[0] => value }
+ #~ else
+ #~ ret = {}
+ #~ end
return ret
end
if not yVal.nil?
yVal[p[0]] = {} if not yVal[p[0]] or yVal[p[0]].class != Hash
ret=rhSet(yVal[p[0]], value, p.drop(1))