mirror of
https://github.com/KevinMidboe/linguist.git
synced 2026-01-05 17:05:34 +00:00
Add Pathname#==
This commit is contained in:
@@ -40,5 +40,10 @@ module Linguist
|
|||||||
def to_s
|
def to_s
|
||||||
@path.dup
|
@path.dup
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def eql?(other)
|
||||||
|
other.is_a?(self.class) && @path == other.to_s
|
||||||
|
end
|
||||||
|
alias_method :==, :eql?
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user