# File lib/dm-core/support/equalizer.rb, line 3
    def equalize(*methods)
      class_eval "def eql?(other)\nreturn true if equal?(other)\ninstance_of?(other.class) &&\n\#{methods.map { |method| \"\#{method}.eql?(other.\#{method})\" }.join(' && ')}\nend\n\ndef ==(other)\nreturn true if equal?(other)\n\#{methods.map { |method| \"other.respond_to?(\#{method.inspect})\" }.join(' && ')} &&\n\#{methods.map { |method| \"\#{method} == other.\#{method}\" }.join(' && ')}\nend\n\ndef hash\n[ \#{methods.join(', ')} ].hash\nend\n", __FILE__, __LINE__ + 1
    end