Class: SHA1

Inherits:
Digest::SHA1 show all
Defined in:
lib/sha1.rb

Class Method Summary collapse

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