Extended maintenance of Ruby versions 1.8.7 and 1.9.2 ended on July 31, 2014. Read more

In Files

  • digest/lib/sha1.rb

Parent

Class/Module Index [+]

Quicksearch

SHA1

Public Class Methods

new(str = nil) click to toggle source
 
               # File digest/lib/sha1.rb, line 11
def new(str = nil)
  if str
    orig_new.update(str)
  else
    orig_new
  end
end
            
Also aliased as: orig_new
orig_new(str = nil) click to toggle source
Alias for: new
sha1(*args) click to toggle source
 
               # File digest/lib/sha1.rb, line 19
def sha1(*args)
  new(*args)
end