See File.identical?.
File.identical?
Returns:
140 141 142
# File 'lib/path/file_predicates.rb', line 140 def identical?(path) File.identical?(@path, path) end