Sha256: d0fdd8b6aa40c10b3999c6d218f66172b99b51067cd3d152e35bd1366da3c85f

Contents?: true

Size: 388 Bytes

Versions: 7

Compression:

Stored size: 388 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
    Nanoc::Checksummer.calc(self)
  end

end

class Pathname
  include Nanoc::PathnameExtensions
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
nanoc-3.7.4 lib/nanoc/base/core_ext/pathname.rb
nanoc-3.7.3 lib/nanoc/base/core_ext/pathname.rb
nanoc-3.7.2 lib/nanoc/base/core_ext/pathname.rb
nanoc-3.7.1 lib/nanoc/base/core_ext/pathname.rb
nanoc-3.7.0 lib/nanoc/base/core_ext/pathname.rb
nanoc-3.6.11 lib/nanoc/base/core_ext/pathname.rb
nanoc-3.6.10 lib/nanoc/base/core_ext/pathname.rb