Class: String

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

Instance Method Summary (collapse)

Instance Method Details

- (String) to_sha1

Convert string to its SHA1 representation

Returns:



8
9
10
# File 'lib/string_to_sha1.rb', line 8

def to_sha1
  Digest::SHA1.hexdigest(self)
end