Sha256: 2ae9cbe0577b34825eb542b122fd830f8b2d792ead18082ca962ccf498c935a9

Contents?: true

Size: 415 Bytes

Versions: 3

Compression:

Stored size: 415 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/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

3 entries across 3 versions & 1 rubygems

Version Path
rubysl-digest-1.0.1 lib/digest/md5.rb
rubysl-digest-1.0.0 lib/digest/md5.rb
rubysl-digest-2.0.2 lib/digest/md5.rb