Sha256: d1114ca568d485d6f22085fa9059e0d95c1ae8d724fc6eb4f822052af78ad7fd

Contents?: true

Size: 386 Bytes

Versions: 2

Compression:

Stored size: 386 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

2 entries across 2 versions & 1 rubygems

Version Path
nanoc-3.8.0 lib/nanoc/base/core_ext/pathname.rb
nanoc-3.7.5 lib/nanoc/base/core_ext/pathname.rb