Method: YARD::Registry.checksum_for

Defined in:
lib/yard/registry.rb

.checksum_for(data) ⇒ String

Returns the SHA1 checksum for data.

Parameters:

  • data (String)

    data to checksum

Returns:

  • (String)

    the SHA1 checksum for data



318
319
320
# File 'lib/yard/registry.rb', line 318

def checksum_for(data)
  Digest::SHA1.hexdigest(data)
end