lib/packwerk/package.rb in packwerk-1.1.3 vs lib/packwerk/package.rb in packwerk-1.2.0
- old
+ new
@@ -50,9 +50,17 @@
def <=>(other)
return nil unless other.is_a?(self.class)
name <=> other.name
end
+ def eql?(other)
+ self == other
+ end
+
+ def hash
+ name.hash
+ end
+
def to_s
name
end
def root?