diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-05 00:33:54 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-05 00:33:54 +0000 |
commit | 66c3c5c0cc615de95a32574e85cb1cdaa7894378 (patch) | |
tree | cc8ef041cb08f8c1763cc1e71fb5f58700026473 /re.c | |
parent | 8cca70725e9fbdebba93e1787bd04cab469106fb (diff) | |
download | ruby-66c3c5c0cc615de95a32574e85cb1cdaa7894378.tar.gz ruby-66c3c5c0cc615de95a32574e85cb1cdaa7894378.tar.xz ruby-66c3c5c0cc615de95a32574e85cb1cdaa7894378.zip |
* re.c (Init_Regexp): new methods. [ruby-core:24748]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 're.c')
-rw-r--r-- | re.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); } |