Module: Proscenium::Utils
- Defined in:
- lib/proscenium/utils.rb
Class Method Summary collapse
-
.digest(value) ⇒ String
Digest of the given value.
Class Method Details
.digest(value) ⇒ String
Returns 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 |