Skip to content

Instantly share code, notes, and snippets.

@rakshasa
rakshasa / gist:1153630
Created August 18, 2011 08:07
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