lib/docface/file_troll.rb in docface-0.0.4 vs lib/docface/file_troll.rb in docface-0.0.5
- old
+ new
@@ -24,7 +24,13 @@
end
end
tree
end
+ def cleanup(h)
+ return true if h.empty?
+ h.find_all{|k,v|h[k]=nil if v.is_a?(Hash)&&cleanup(v)}
+ false
+ end
+
end
end