Class: Deface::Digest

Inherits:
Object
  • Object
show all
Defined in:
lib/deface/digest.rb

Class Method Summary collapse

Class Method Details

.digest_classObject



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