Created
August 18, 2011 08:07
-
-
Save rakshasa/1153630 to your computer and use it in GitHub Desktop.
Trema::Mac hashing functions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/ruby/trema/mac.rb b/ruby/trema/mac.rb | |
index 7b03d91..1cf3fe5 100644 | |
--- a/ruby/trema/mac.rb | |
+++ b/ruby/trema/mac.rb | |
@@ -55,6 +55,13 @@ module Trema | |
@value == other.value | |
end | |
+ def eql?(other) | |
+ @value.eql? other.value | |
+ end | |
+ | |
+ def hash | |
+ @value.hash | |
+ end | |
################################################################################ | |
private |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment