Sha256: 1cf1ef7a33d68999e8fb61f438b32133346751a0439ee2f6c4123071c229cd49

Contents?: true

Size: 432 Bytes

Versions: 4

Compression:

Stored size: 432 Bytes

Contents

# just for compatibility; requiring "md5" is obsoleted
#
# $RoughId: md5.rb,v 1.4 2001/07/13 15:38:27 knu Exp $
# $Id: md5.rb 12008 2007-03-06 10:12:12Z knu $

require 'digest'
require 'digest/md5/md5'

class MD5 < Digest::MD5
  class << self
    alias orig_new new
    def new(str = nil)
      if str
        orig_new.update(str)
      else
        orig_new
      end
    end

    def md5(*args)
      new(*args)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rubysl-digest-2.1 lib/digest/md5.rb
rubysl-digest-2.0.8 lib/digest/md5.rb
rubysl-digest-2.0.7 lib/digest/md5.rb
rubysl-digest-2.0.3 lib/digest/md5.rb