Module: Proscenium::Utils

Defined in:
lib/proscenium/utils.rb

Class Method Summary collapse

Class Method Details

.digest(value) ⇒ String

Returns digest of the given value.

Parameters:

  • value (#to_s)

    The value to create the digest from. This will usually be a ‘Pathname`.

Returns:

  • (String)

    digest of the given value.



9
10
11
# File 'lib/proscenium/utils.rb', line 9

def digest(value)
  Digest::SHA1.hexdigest(value.to_s)[..7]
end