Sha256: ccb28b61c9162c7e063c1ed95c57c09386a91e7b994f9a29f52b4ad75fd1387e
Contents?: true
Size: 423 Bytes
Versions: 3
Compression:
Stored size: 423 Bytes
Contents
# just for compatibility; requiring "sha1" is obsoleted # # $RoughId: sha1.rb,v 1.4 2001/07/13 15:38:27 knu Exp $ # $Id: sha1.rb 12008 2007-03-06 10:12:12Z knu $ require 'digest/sha1/sha1' class SHA1 < Digest::SHA1 class << self alias orig_new new def new(str = nil) if str orig_new.update(str) else orig_new end end def sha1(*args) new(*args) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rubysl-digest-1.0.1 | lib/digest/sha1.rb |
rubysl-digest-1.0.0 | lib/digest/sha1.rb |
rubysl-digest-2.0.2 | lib/digest/sha1.rb |