summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-05 00:33:54 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-05 00:33:54 +0000
commit7b9024f74055febffbe3bc8741e086b7a35b86c7 (patch)
treecc8ef041cb08f8c1763cc1e71fb5f58700026473
parent605e7d4a603adcdbe1c2bde969c5f95938873ee2 (diff)
* re.c (Init_Regexp): new methods. [ruby-core:24748]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--re.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/re.c b/re.c
index a52cc1d36b..1197481564 100644
--- a/re.c
+++ b/re.c
@@ -3513,4 +3513,7 @@ Init_Regexp(void)
rb_define_method(rb_cMatch, "to_s", match_to_s, 0);
rb_define_method(rb_cMatch, "inspect", match_inspect, 0);
rb_define_method(rb_cMatch, "string", match_string, 0);
+ rb_define_method(rb_cMatch, "hash", match_hash, 0);
+ rb_define_method(rb_cMatch, "eql?", match_equal, 1);
+ rb_define_method(rb_cMatch, "==", match_equal, 1);
}