Sha256: e8771d87fec72472b0a037882ac2beb9c45c0fc6e0ce2a03948f5cae5f54e260
Contents?: true
Size: 424 Bytes
Versions: 2
Compression:
Stored size: 424 Bytes
Contents
# encoding: utf-8 module Nanoc::PathnameExtensions # Calculates the checksum for the file referenced to by this pathname. Any # change to the file contents will result in a different checksum. # # @return [String] The checksum for this file # # @api private def checksum stat = File.stat(to_s) stat.size.to_s + '-' + stat.mtime.to_s end end class Pathname include Nanoc::PathnameExtensions end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nanoc-3.6.9 | lib/nanoc/base/core_ext/pathname.rb |
nanoc-3.6.8 | lib/nanoc/base/core_ext/pathname.rb |