mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	Add Pathname#==
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user