Module: Nanoc::PathnameExtensions

Included in:
Pathname
Defined in:
lib/nanoc/base/core_ext/pathname.rb

Instance Method Summary (collapse)

Instance Method Details

- (String) checksum

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Calculates the checksum for the file referenced to by this pathname. Any change to the file contents will result in a different checksum.

Returns:

  • (String)

    The checksum for this file



10
11
12
# File 'lib/nanoc/base/core_ext/pathname.rb', line 10

def checksum
  Nanoc::Checksummer.calc(self)
end