Skip to content

Instantly share code, notes, and snippets.

@rakshasa
Created August 18, 2011 08:07
Show Gist options
  • Save rakshasa/1153630 to your computer and use it in GitHub Desktop.
Save rakshasa/1153630 to your computer and use it in GitHub Desktop.
Trema::Mac hashing functions
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