Class: Deface::Digest
- Inherits:
-
Object
- Object
- Deface::Digest
- Defined in:
- lib/deface/digest.rb
Class Method Summary collapse
Class Method Details
.digest_class ⇒ Object
4 5 6 |
# File 'lib/deface/digest.rb', line 4 def digest_class @digest_class || ::Digest::MD5 end |
.digest_class=(klass) ⇒ Object
8 9 10 |
# File 'lib/deface/digest.rb', line 8 def digest_class=(klass) @digest_class = klass end |
.hexdigest(arg) ⇒ Object
12 13 14 |
# File 'lib/deface/digest.rb', line 12 def hexdigest(arg) digest_class.hexdigest(arg)[0...32] end |