summaryrefslogtreecommitdiff
path: root/ext/md5/md5init.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/md5/md5init.c')
-rw-r--r--ext/md5/md5init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/md5/md5init.c b/ext/md5/md5init.c
index f3dafed3362..a57d5f8f307 100644
--- a/ext/md5/md5init.c
+++ b/ext/md5/md5init.c
@@ -105,6 +105,7 @@ Init_md5()
cMD5 = rb_define_class("MD5", rb_cObject);
rb_define_singleton_method(cMD5, "new", md5_new, -1);
+ rb_define_singleton_method(cMD5, "md5", md5_new, -1);
rb_define_method(cMD5, "update", md5_update, 1);
rb_define_method(cMD5, "digest", md5_digest, 0);