Method: Path#has_same_contents?

Defined in:
lib/path/fileutils.rb

#has_same_contents?(file) ⇒ Boolean

Whether the contents of path and file are identical. See FileUtils.compare_file.

Returns:

  • (Boolean)


99
100
101
# File 'lib/path/fileutils.rb', line 99

def has_same_contents?(file)
  FileUtils.compare_file(@path, file)
end