module HashDiff

Constants

VERSION

Public Class Methods

patch!() click to toggle source
# File lib/hash_diff.rb, line 7
def self.patch!
  Hash.class_eval do
    def diff(right)
      HashDiff.left_diff(self, right)
    end
  end unless Hash.new.respond_to?(:diff)
end

Public Instance Methods

diff(right) click to toggle source
# File lib/hash_diff.rb, line 9
def diff(right)
  HashDiff.left_diff(self, right)
end
left_diff(*args) click to toggle source
# File lib/hash_diff.rb, line 21
def left_diff(*args)
  Comparison.new(*args).left_diff
end
right_diff(*args) click to toggle source
# File lib/hash_diff.rb, line 25
def right_diff(*args)
  Comparison.new(*args).right_diff
end