alexdalitz/dnsruby — pull request #26 by keithrbennett (2014-11-02 22:23:28+00:00)
Title: Removed extra == method and simplified remaining one. Added tests.

RubyMine reported to me that the first == method defined was overridden and had no effect. I looked at them both and tried to determine which implementation would be best. Feel free to correct.

Is it reasonable to compare the question array rather than just its first element?

Also, I was thinking that maybe the most authoritative test for equality would be to compare the encoded binary strings for equality, but thought that maybe doing so would be overly expensive.