Add Pathname#==

This commit is contained in:
Joshua Peek
2011-05-13 12:41:38 -05:00
parent 39bd49950e
commit d07d457677

View File

@@ -40,5 +40,10 @@ module Linguist
def to_s
@path.dup
end
def eql?(other)
other.is_a?(self.class) && @path == other.to_s
end
alias_method :==, :eql?
end
end