schmich/kappa

View on GitHub
lib/kappa/id_equality.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Twitch
  # @private
  module IdEquality
    def hash
      @id.hash
    end

    def eql?(other)
      other && (self.class == other.class) && (self.id == other.id)
    end

    def ==(other)
      eql?(other)
    end
  end
end