Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/string_to_sha1.rb
Instance Method Summary (collapse)
-
- (String) to_sha1
Convert string to its SHA1 representation.
Instance Method Details
- (String) to_sha1
Convert string to its SHA1 representation
8 9 10 |
# File 'lib/string_to_sha1.rb', line 8 def to_sha1 Digest::SHA1.hexdigest(self) end |