Sha256: 95347f3e02ced55a0d47b281b50513a7fac81a471dce3ad1ae83116a29257774

Contents?: true

Size: 484 Bytes

Versions: 2

Compression:

Stored size: 484 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'

if defined? Ray and not defined? Digest::MD5
  Ray.init_internal("md5")
end

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

2 entries across 2 versions & 1 rubygems

Version Path
ray-0.0.1 psp/digest/lib/md5.rb
ray-0.0.0.pre2 psp/digest/lib/md5.rb