source: extensions/gsdl-video/trunk/installed/cmdline/lib/ruby/1.8/md5.rb@ 18425

Last change on this file since 18425 was 18425, checked in by davidb, 15 years ago

Video extension to Greenstone

File size: 411 bytes
Line 
1# just for compatibility; requiring "md5" is obsoleted
2#
3# $RoughId: md5.rb,v 1.4 2001/07/13 15:38:27 knu Exp $
4# $Id: md5.rb 12008 2007-03-06 10:12:12Z knu $
5
6require 'digest/md5'
7
8class MD5 < Digest::MD5
9 class << self
10 alias orig_new new
11 def new(str = nil)
12 if str
13 orig_new.update(str)
14 else
15 orig_new
16 end
17 end
18
19 def md5(*args)
20 new(*args)
21 end
22 end
23end
Note: See TracBrowser for help on using the repository browser.