Rework diff slightly

This commit is contained in:
Arfon Smith
2014-07-22 16:03:10 -05:00
parent 84ea710d42
commit 20154eb049
2 changed files with 6 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
class Hash
module HashDiff
def deep_diff(b)
a = self
(a.keys | b.keys).inject({}) do |diff, k|
@@ -13,3 +13,7 @@ class Hash
end
end
end
class Hash
include HashDiff
end