Class: SHA1
- Inherits:
-
Digest::SHA1
- Object
- Digest_Base
- Digest::SHA1
- SHA1
- Defined in:
- lib/sha1.rb
Class Method Summary collapse
- .new(str = nil) ⇒ Object (also: orig_new)
- .sha1(*args) ⇒ Object
Class Method Details
.new(str = nil) ⇒ Object Also known as: orig_new
11 12 13 14 15 16 17 |
# File 'lib/sha1.rb', line 11 def new(str = nil) if str orig_new.update(str) else orig_new end end |
.sha1(*args) ⇒ Object
19 20 21 |
# File 'lib/sha1.rb', line 19 def sha1(*args) new(*args) end |