lib/hash_diff.rb in hash_diff-0.6.3 vs lib/hash_diff.rb in hash_diff-0.7.0
- old
+ new
@@ -12,7 +12,15 @@
end
def right_diff(*args)
Comparison.new(*args).right_diff
end
+
+ def patch!
+ Hash.class_eval do
+ def diff right
+ HashDiff.left_diff self, right
+ end
+ end unless self.class.respond_to? :diff
+ end
end
-end
\ No newline at end of file
+end